Community
Participate
Working Groups
HEAD class C { void m() { new Cloneable() { class MemberOfLocal { } }; } } ITypeBinding#getQualifiedName() on 'MemberOfLocal' returns ".MemberOfLocal". Expected: returns "", see Javadoc: 'Local types (including anonymous classes) and members of local types do not have a fully qualified name. For these types, and array types thereof, this method returns an empty string.' The problem can e.g. be seen in Eclipse when you place the caret on 'MemberOfLocal' and press Ctrl+Shift+M => 'import .MemberOfLocal;' is added.
> The problem can e.g. be seen in Eclipse when you place the caret on > 'MemberOfLocal' and press Ctrl+Shift+M => 'import .MemberOfLocal;' is added. This is only reproducible if C is *not* in the default package.
Released for 3.4M2. Regression tests added in org.eclipse.jdt.core.tests.dom.ASTConverterTestAST3_2#test0684 org.eclipse.jdt.core.tests.dom.ASTConverterTestAST3_2#test0685
Verified for 3.4M2 using build I20070917-0010