Skip to content

Implement PolyNull with element value#1157

Draft
aosen-xiong wants to merge 12 commits intoeisop:masterfrom
aosen-xiong:diff-poly
Draft

Implement PolyNull with element value#1157
aosen-xiong wants to merge 12 commits intoeisop:masterfrom
aosen-xiong:diff-poly

Conversation

@aosen-xiong
Copy link
Copy Markdown
Collaborator

@aosen-xiong aosen-xiong commented Mar 19, 2025

Fixes #242
Merge with eisop/jdk#126

@aosen-xiong
Copy link
Copy Markdown
Collaborator Author

TODO:

  1. test reject field has a poly qual with the argument in a class that doesn't have hashpoly.
  2. look for how lamdba inference works with poly.

import org.checkerframework.framework.qual.HasQualifierParameter;
import org.checkerframework.framework.qual.NoQualifierParameter;

@HasQualifierParameter(Nullable.class)
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wmdietl Should we allow @PolyNull with an element on field? Poly qualifier on field expresses the field qualifier is the same with its receiver. What does it mean to have different poly qualifiers on field? Maybe we should reject poly qualifier with an element on field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support multiple distinct polymorphic qualifiers

1 participant