You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I face this problem when implementing parsing of wildcard in asm (TypeUsageSignatureVisitor)1. So I am looking for a way to solve this if possible.
What are our options here?
? extends QualifiedName will map to QualifiedName and ? super QualifiedName will map to Object. This is probably easiest to implement, and with current implementation of TypeSignatureVisitor in summarizer, this is what happens anyway.
? extends QualifiedName will create a new type variable W1 extends QualifiedName. ? super QualifiedName is still Object.
I need to study the generics spec, especially the covariance part, but I would like to listen from those who already have. :)
Footnotes
Map<K, V> uses many ? extends K kind of stuff. Previously +K would get parsed as K but if we want to parse it as ? extends K, we should handle Kind.WILDCARD properly in the generator. ↩
The text was updated successfully, but these errors were encountered: