### Eclipse Workspace Patch 1.0 #P org.eclipse.jdt.core Index: model/org/eclipse/jdt/core/IType.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/core/IType.java,v retrieving revision 1.71 diff -u -r1.71 IType.java --- model/org/eclipse/jdt/core/IType.java 17 Dec 2010 14:10:57 -0000 1.71 +++ model/org/eclipse/jdt/core/IType.java 10 Mar 2011 17:45:15 -0000 @@ -906,11 +906,17 @@ boolean isAnnotation() throws JavaModelException; /** - * Returns whether this type represents a local type. + * Returns whether this type represents a local type. For an anonymous type, + * this method returns true. + *

+ * NOTE: As per JLS3 14.3, anonymous inner classes are not considered local + * types since they do not have a name. + *

* * @exception JavaModelException if this element does not exist or if an * exception occurs while accessing its corresponding resource. * @return true if this type represents a local type, false otherwise + * @see org.eclipse.jdt.core.dom.ITypeBinding#isLocal() * @since 2.0 */ boolean isLocal() throws JavaModelException;