Community
Participate
Working Groups
200412142000 getJavaElement() is null for the binding of the method invocation A.method(..) in User#m(): public class User { void m() { A.method(new ArrayList<Number>()); } } class A { static <T extends Number> T method(List<? extends T> arg) { return arg.get(0); } }
Is your test case complete ? Or you're not importing List and ArrayList on purpose ?
To answer myself, even if importing java.util.* the Java element is null.
Changed Member#areSimilarMethods and #findMethhods to use the type erasure of the parameter types. Added regression test ASTModelBridgeTest#testMethod4()
Verified in 200412160010