Community
Participate
Working Groups
I have a ITypeBindng for java.util.List, which was retrieved for a class field type: "private List<Employee> employees". The ITypeBindings for the interfaces java.util.List extend does not return the non-generic fully qualified name. ITypeBinding.getQualifiedName() returns java.util.Collection<E> for the ITypeBinding of java.util.Collection. However the Javadoc says: "Note that the type parameters of a generic type are not included". Is the return value wrong or is the Javadoc wrong?
Since here using a parameterized type reference to find the ITypeBinding, the javadoc clearly says "For type bindings that correspond to particular instances of a generic type arising from a parameterized type reference, the fully qualified name is the fully qualified name of the erasure type followed by the fully qualified names of the type arguments surrounded by "<>" and separated by ",". Example: "java.util.Collection<java.lang.String>" So i think this is correct.
Thanks for the information.
Closing as invalid.
Verified for 3.7 M7