RFR: 8364187: Make getClassAccessFlagsRaw non-native

Coleen Phillimore coleenp at openjdk.org
Mon Jul 28 20:19:31 UTC 2025


This change removes the intrinsic for getClassAccessFlagsRaw for reflection and initializes an rawAccessFlags field in java.lang.Class instead, that Java code can non-natively access.
Tested with tier1-4.

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

Commit messages:
 - The only caller for getRawClassAccessFlags in Class.java doesn't call it for arrays so we really want the "raw" classfile access flags.
 - Add a comment
 - 8364187: Make getClassAccessFlagsRaw non-native

Changes: https://git.openjdk.org/jdk/pull/26517/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=26517&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8364187
  Stats: 98 lines in 16 files changed: 38 ins; 46 del; 14 mod
  Patch: https://git.openjdk.org/jdk/pull/26517.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/26517/head:pull/26517

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


More information about the core-libs-dev mailing list