### Eclipse Workspace Patch 1.0 #P org.eclipse.jdt.core Index: compiler/org/eclipse/jdt/internal/compiler/lookup/SyntheticMethodBinding.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/SyntheticMethodBinding.java,v retrieving revision 1.11 diff -u -r1.11 SyntheticMethodBinding.java --- compiler/org/eclipse/jdt/internal/compiler/lookup/SyntheticMethodBinding.java 29 Mar 2006 02:45:26 -0000 1.11 +++ compiler/org/eclipse/jdt/internal/compiler/lookup/SyntheticMethodBinding.java 10 May 2006 21:05:12 -0000 @@ -245,10 +245,12 @@ this.tagBits |= TagBits.AnnotationResolved; this.thrownExceptions = Binding.NO_EXCEPTIONS; if (selector == TypeConstants.VALUES) { + this.modifiers = ClassFileConstants.AccFinal | ClassFileConstants.AccPublic | ClassFileConstants.AccStatic; this.returnType = declaringEnum.scope.createArrayType(declaringEnum, 1); this.parameters = Binding.NO_PARAMETERS; this.kind = EnumValues; } else if (selector == TypeConstants.VALUEOF) { + this.modifiers = ClassFileConstants.AccPublic | ClassFileConstants.AccStatic; this.returnType = declaringEnum; this.parameters = new TypeBinding[]{ declaringEnum.scope.getJavaLangString() }; this.kind = EnumValueOf;