kfgodel / diamond

A java project to extend reflection and make it easy to use
Apache License 2.0
0 stars 0 forks source link

Actual arguments inference only works for literal types #234

Open kfgodel opened 9 years ago

kfgodel commented 9 years ago

ArrayList is correctly infered to List because ArrayList implements List. Same variable type for supertype parametrization. With non trivial variable replacements the inference doesn't recognize parameters: Subtype implements Supertype<List> (the type variable is used as argument in other type instead of supertype). I.E. Subtype turns into Supertype<List>