RFR: 8364187: Make getClassAccessFlagsRaw non-native [v2]
Chen Liang
liach at openjdk.org
Tue Jul 29 14:37:59 UTC 2025
On Tue, 29 Jul 2025 11:58:50 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:
>> src/java.base/share/classes/java/lang/Class.java line 1012:
>>
>>> 1010: private transient Object[] signers; // Read by VM, mutable
>>> 1011: private final transient char modifiers; // Set by the VM
>>> 1012: private final transient char rawAccessFlags; // Set by the VM
>>
>> I suggest `classFileFlags` in the spirit of `getClassFileVersion` - this is the flag on the JVMS 4 `ClassFile` structure, while the `modifiers` can be alternatively from `InnerClasses` attribute.
>
> This is a good suggestion but I made it Raw to match getRawClassAnnotations this name.
Thanks for the rename. I think `raw annotations` means the uninterpreted byte data in the attribute is carried over raw; this concept is less applicable to the access_flags u2 value.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/26517#discussion_r2240075254
More information about the core-libs-dev
mailing list