RFR: 8291360: Create entry points to expose low-level class file information

Harold Seigel hseigel at openjdk.org
Mon Aug 1 16:40:54 UTC 2022


On Fri, 29 Jul 2022 21:21:43 GMT, Roger Riggs <rriggs at openjdk.org> wrote:

>> Please review this change to fix JDK-8291360.  This fix adds entry points getClassFileVersion() and getClassAccessFlagsRaw() to class java.lang.Class.  The new entry points return the current class's class file version and its raw access flags.
>> 
>> The fix was tested by running Mach5 tiers 1-2 on Linux, Mac OS, and Windows, and Mach5 tiers 1-3 on Linux x64.  Additionally, the JCK lang, vm, and api tests and new regression tests were run locally on Linux x64.
>> 
>> Thanks, Harold
>
> test/hotspot/jtreg/runtime/ClassFile/classAccessFlagsRaw.jcod line 25:
> 
>> 23:  */
>> 24: 
>> 25: // Class with ACC_SUPER set
> 
> Can these classes be defined more succinctly either in Java or .asm?

The jcod test files are relatively small so I don' think they need to be rewritten using asm.

-------------

PR: https://git.openjdk.org/jdk/pull/9688



More information about the build-dev mailing list