Community
Participate
Working Groups
build 3.3RC4. 1) create EnumA.java public enum EnumA { B1, B2; public void foo(){} } class ClassC { void bar() { EnumA.B1.B1.foo(); EnumA.B1.B2.foo(); } } 2) compile EnumA.java Then there is two warning: The static field EnumA.B1 should be accessed in a static way The static field EnumA.B2 should be accessed in a static way For the first warning the first B1 is underlined 'EnumA.<<B1>>.B1.foo();'. For the second warning B2 is underlined 'EnumA.B1.<<B2>>.foo();'. The second B1 should be underlined instead the first 'EnumA.B1.<<B1>>.foo();'.
The index in the qualified name needs to be passed to the problemm reporter.
Created attachment 72185 [details] Proposed fix
Released for 3.4M1.
Verified for 3.4M1 using build I20070806-1800.