Community
Participate
Working Groups
Suppose B is a resolvable type in type A. Suppose aType is the IType instance for A. Then, aType.resolveType("B") returns non-null. However, aType.resolveType("B[]") returns null. Technically, if B is resolvable in A, then I should be able to declare an array of type B in A. As such, aType.resolveType("B[]") should return a non-null value. -- Configuration Details -- Product: Eclipse 4.5.2.20160218-0600 (org.eclipse.epp.package.committers.product) Installed Features: org.eclipse.jdt 3.11.2.v20160212-1500
I changed the title to better match the classification as an enhancement, because the contract of IType.resolveType(String) makes no promise about handling array types. "B[]" should not be considered as a type name. "[]" is a type constructor, which, applied to "B", creates a new type. I don't think that this request fits well into the given API, I can't even see a good way how a resolved type for "B[]" could be answered as String[][]. So you shouldn't hold your breath waiting for this to be implemented.