Community
Participate
Working Groups
Build Identifier: I20100608-0911 A class with a structure like this compiles fine under Eclipse: @SomeAnnotation(value = { ExampleClass.FOO }) public class ExampleClass { private static final String FOO = "foo"; } When compiled with Sun's javac, an error similar to this is the result: [javac] ExampleClass.java:89: FOO has private access in ExampleClass [javac] ExampleClass.FOO, Of course, changing the field from private to protected visibility works for both. Reproducible: Always
The problem does not show up on HEAD. This is a duplicate of bug 316456 as can be confirmed by backing out the fix for that bug and being able to reproduce the problem. *** This bug has been marked as a duplicate of bug 316456 ***
Verified for 3.6.1 using build M20100825-0800. I haven't reset the Whiteboard intentionally as I think it would be safe to also verify this test case in HEAD stream (it's different than the test case of bug 316456 comment 0...)
Verified for 3.7M2 using I20100914-0100