RFR: JDK-8065773: JDI: UOE is not thrown, when redefineClasses changes a class modifier

Gary Adams gary.adams at oracle.com
Mon Feb 4 14:01:22 UTC 2019


Two of the redefine classes tests (021, 023) have been on the 
ProblemList since they
were first brought into the open repos. Both tests made an incorrect 
assumption
about the access modifiers in class files. There is a single bit in the 
binary class file that
defines if an interface is public or not public (See JVMS Table 4.1-B 
ACC_PUBLIC).
When the test classes are compiled for use in the redefine operation, if 
a source
used public or protected the ACC_PUBLIC bit was set.

Several modifiers are used in these tests to confirm 
UnsupportedOperationException
is thrown or not thrown. This proposed change simply corrects the 
expected results
according to the JVM Specification.

   Webrev: http://cr.openjdk.java.net/~gadams/8065773/webrev.00/index.html


More information about the serviceability-dev mailing list