Skip to content

Workaround for the logic issue of AnnotatedTypes.asMemberOf#50

Open
d367wang wants to merge 18 commits into
opprop:masterfrom
d367wang:check-constructor-result
Open

Workaround for the logic issue of AnnotatedTypes.asMemberOf#50
d367wang wants to merge 18 commits into
opprop:masterfrom
d367wang:check-constructor-result

Conversation

@d367wang

@d367wang d367wang commented Apr 16, 2021

Copy link
Copy Markdown
Contributor

As mentioned in opprop/checker-framework-inference#310, there are some logic issues with AnnotatedTypes.asMemberOf which annotates methods of a parameterized type. The VarAnno created for the parameterized type argument is missing.

In this PR, a general default qualifier is specified to work around this so that if the previous annotators don't add any annotation, the default applier will add one to make sure constraints can be created.

The newly-added test file ParameterizedTypeTest.java is to ensure that the workaround works.

Identical to #49, except being named samely as opprop/checker-framework-inference#313

Comment thread src/ontology/OntologyInferenceAnnotatedTypeFactory.java Outdated
@d367wang d367wang changed the title related ontology pull request for checker-framework-inference CI Workaround for the logic issue of AnnotatedTypes.asMemberOf Jul 22, 2021
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.

3 participants