### Eclipse Workspace Patch 1.0 #P org.eclipse.jdt.core Index: compiler/org/eclipse/jdt/internal/compiler/ast/Annotation.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/Annotation.java,v retrieving revision 1.48 diff -u -r1.48 Annotation.java --- compiler/org/eclipse/jdt/internal/compiler/ast/Annotation.java 10 Jan 2006 21:01:06 -0000 1.48 +++ compiler/org/eclipse/jdt/internal/compiler/ast/Annotation.java 19 Jan 2006 12:54:50 -0000 @@ -319,7 +319,13 @@ sourceType.tagBits |= tagBits; if ((tagBits & TagBits.AnnotationSuppressWarnings) != 0) { TypeDeclaration typeDeclaration = sourceType.scope.referenceContext; - recordSuppressWarnings(scope, typeDeclaration.declarationSourceStart, typeDeclaration.declarationSourceEnd, scope.compilerOptions().suppressWarnings); + int start; + if (scope.referenceCompilationUnit().types[0] == typeDeclaration) { + start = 0; + } else { + start = typeDeclaration.declarationSourceStart; + } + recordSuppressWarnings(scope, start, typeDeclaration.declarationSourceEnd, scope.compilerOptions().suppressWarnings); } break; case Binding.METHOD :