Skip to content
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

Slots inappropriately created for type variable use within type parameter declaration #347

Open
d367wang opened this issue Jul 30, 2021 · 0 comments

Comments

@d367wang
Copy link

For the following test case,

import java.util.Iterator;

abstract class SuperIterator<E, T extends Iterable<E>> {}

the VarAnnos are created as

import checkers.inference.qual.VarAnnot;
import java.util.Iterator;
import java.util.List;

@VarAnnot(11)
abstract class SuperIterator<@VarAnnot(5) E extends @VarAnnot(6) Object, 
                             @VarAnnot(7) T extends @VarAnnot(8) Iterable<@VarAnnot(9) E>> 
{}

Additional existential variable slots for the type variable upper/lower bound in Iterator<E> are created as follows
10: ( 9 | 9 )
12: ( 10 | 9 )

which are supposed to be like
10: ( 9 | 5 )
12: ( 9 | 6 )

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

No branches or pull requests

1 participant