-
Bug
-
Resolution: Fixed
-
P2
-
6
-
b81
-
generic
-
generic
-
Verified
JCModifiers.getModifiers() returns a Set<Modifier> which should contain a modifier which matches each bit set in JCModifiers.flags (excluding non-standard flags). The problem is that this method's implementation depends upon the order of enumerations matching the bit order as defined in com.sun.tools.javac.code.Flags. Because these two lists are different, the set of Modifiers doesn't match the flags. I verified this in the debugger, where Flags.toString() showed "static final" while the Modifier set contained "[abstract, static]".