-
Bug
-
Resolution: Fixed
-
P3
-
1.1.5, 1.2.0
-
None
-
1.2beta4
-
generic, sparc
-
solaris_2.5, solaris_2.6
There are several problems here with the value reported by Class.getModifiers
- the ACC_SUPER bit appears (and is observed by users as "synchronized")
- the javadoc for this method promises that the source-level modifiers
are returned, and it explicitly mentions private and protected: it
should also mention static as a possibility
- the method actually returns the "transformed" (low-level) modifiers,
so that in fact "private", "protected", and "static" never appear,
even if they were specified in the source code: this is wrong
- the ACC_SUPER bit appears (and is observed by users as "synchronized")
- the javadoc for this method promises that the source-level modifiers
are returned, and it explicitly mentions private and protected: it
should also mention static as a possibility
- the method actually returns the "transformed" (low-level) modifiers,
so that in fact "private", "protected", and "static" never appear,
even if they were specified in the source code: this is wrong
- duplicates
-
JDK-4109603 Class.getModifier() returns wrong value
-
- Closed
-
- relates to
-
JDK-4028577 Class: getDeclaringClass, getClasses and getDeclaredClasses unimplemented
-
- Closed
-
-
JDK-4138805 Regression test ForInnerClass.java failing with JDK1.2beta4-E
-
- Closed
-