Community
Participate
Working Groups
public class A_test1105 { public <E> void foo(E param) { /*[*/E local= param; foo(local);/*]*/ } } - calling CompllationUnit#findDeclaringNode with the type binding representing E doesn't return the node <E> (e.g. the one in the method declaration)
It isn't specified to be working for type variables.
Jim, We might want to add type variables in the specifications.
I've revised spec for both CompllationUnit.findDeclaringNode(*) methods to cover IBindings for type variables: * <li>type variable - a <code>TypeParameter</code></li>
Olivier, Re-assigning to you for backing implementation.
Fixed and released in HEAD. Regression test added in ASTConverter15Test.test0088.
Verified (in I20041214-2000) that the test ensures that findDeclaringNode returns a type parameter for the type of the local.