Index: ProblemReporter.java =================================================================== RCS file: /home/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java,v retrieving revision 1.231 diff -u -r1.231 ProblemReporter.java --- ProblemReporter.java 28 Feb 2005 06:36:17 -0000 1.231 +++ ProblemReporter.java 15 Mar 2005 00:49:00 -0000 @@ -3915,7 +3915,8 @@ MethodBinding method, ASTNode location) { - if (method.isConstructor()) + if (method.isConstructor()) { + if (method.declaringClass.isEnum()) return; this.handle( IProblem.NeedToEmulateConstructorAccess, new String[] { @@ -3928,7 +3929,7 @@ }, location.sourceStart, location.sourceEnd); - else + } else { this.handle( IProblem.NeedToEmulateMethodAccess, new String[] { @@ -3942,7 +3943,8 @@ typesAsString(method.isVarargs(), method.parameters, true) }, location.sourceStart, - location.sourceEnd); + location.sourceEnd); + } } public void nestedClassCannotDeclareInterface(TypeDeclaration typeDecl) { String[] arguments = new String[] {new String(typeDecl.name)};