forked from typetools/checker-framework
-
Notifications
You must be signed in to change notification settings - Fork 29
Fix requalifying type variable uses during viewpoint adaptation #799
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
aosen-xiong
wants to merge
28
commits into
eisop:master
Choose a base branch
from
aosen-xiong:haifeng-viewpointAdpatOnGenerics
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 5 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
c479361
fix viewpoint adaptation
AndrewShf 0b71144
add comments
AndrewShf 3f4b065
remove getannotationsfield().clear()
AndrewShf 7d78a7d
reset annotated type variables in viewpoint adaptation
AndrewShf 06c15e5
add comments
AndrewShf 584d98f
Refine the comment
aosen-xiong 371a623
Test case with expected failure
aosen-xiong e15a909
Merge branch 'master' into haifeng-viewpointAdpatOnGenerics
aosen-xiong eb4a8bd
Empty commit for CI
aosen-xiong 48ef745
Assign @B to effectively @A should fail
aosen-xiong 5db3b4c
Merge branch 'master' into haifeng-viewpointAdpatOnGenerics
aosen-xiong 46f8fba
Clear comment how the code change fix the problem
aosen-xiong 6c579aa
Merge branch 'master' into haifeng-viewpointAdpatOnGenerics
aosen-xiong b35a4ab
Merge branch 'master' into haifeng-viewpointAdpatOnGenerics
aosen-xiong d1220fd
Merge branch 'master' into haifeng-viewpointAdpatOnGenerics
wmdietl 8ef1c18
Merge branch 'master' into haifeng-viewpointAdpatOnGenerics
wmdietl ed7cfbd
Also add unannotated type variable use in test
aosen-xiong cb70b07
Merge branch 'master' into haifeng-viewpointAdpatOnGenerics
wmdietl 9f994a9
Merge branch 'master' into haifeng-viewpointAdpatOnGenerics
aosen-xiong 5977355
Preserve type variable use annotations during viewpoint adaptation
aosen-xiong b88be07
Merge branch 'master' into haifeng-viewpointAdpatOnGenerics
aosen-xiong e598c25
Merge branch 'master' into haifeng-viewpointAdpatOnGenerics
aosen-xiong c61001f
Trigger CI
aosen-xiong 8721ef9
Implement explicit type-variable use semantics
aosen-xiong 58bc0b3
Consolidate type-variable use tests
aosen-xiong 2581b3c
Refine type-variable use requalification
aosen-xiong 34b82d2
Merge branch 'master' into haifeng-viewpointAdpatOnGenerics
aosen-xiong c8aa74f
Reset type variable mode when clearing stub annotations
aosen-xiong File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| import viewpointtest.quals.*; | ||
|
|
||
| @SuppressWarnings("cast.unsafe.constructor.invocation") | ||
| class AnnoOnTypeVariableUse<E> { | ||
| @ReceiverDependentQual E element; | ||
|
|
||
| static void test() { | ||
| AnnoOnTypeVariableUse<@B Element> d = new @A AnnoOnTypeVariableUse<@B Element>(); | ||
| // d.element = @A |> @RDQ = @A | ||
| // thus expects no error here | ||
| d.element = new @A Element(); | ||
|
aosen-xiong marked this conversation as resolved.
Outdated
aosen-xiong marked this conversation as resolved.
Outdated
|
||
| } | ||
| } | ||
|
|
||
| class Element { | ||
| int f = 1; | ||
| } | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.