Index: compiler/org/eclipse/jdt/internal/compiler/ClassFile.java =================================================================== RCS file: /home/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ClassFile.java,v retrieving revision 1.111 diff -u -r1.111 ClassFile.java --- compiler/org/eclipse/jdt/internal/compiler/ClassFile.java 30 May 2005 17:05:38 -0000 1.111 +++ compiler/org/eclipse/jdt/internal/compiler/ClassFile.java 21 Jul 2005 21:34:59 -0000 @@ -603,7 +603,8 @@ attributeNumber++; } if (targetJDK >= ClassFileConstants.JDK1_5 - && (this.referenceBinding.isAnonymousType() || this.referenceBinding.isLocalType())) { + && this.referenceBinding.isNestedType() + && !this.referenceBinding.isMemberType()) { // add enclosing method attribute (1.5 mode only) if (contentsOffset + 10 >= contents.length) { resizeContents(10);