[lworld] RFR: 8281463: [lworld] VALUE / PRIMITIVE modifiers should be supported by reflection

Roger Riggs rriggs at openjdk.java.net
Tue Feb 8 21:29:56 UTC 2022


Update java.lang.reflection.Modifier to reflect the JVMS specified bits in the modifier.

The re-use of bits between method and class modifiers poses a problem for this API.
Previously, all bits were distinct and the modifiers do not include any indication of whether
the modifier bits are from a class, field, or method. As a result there is ambiguity as two which
of two meanings a bit takes on.  NATIVE vs VALUE and STRICT vs PRIMITIVE.

Please review for discussion purposes.

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

Commit messages:
 - 8281463: [lworld] VALUE / PRIMITIVE modifiers should be supported by reflection

Changes: https://git.openjdk.java.net/valhalla/pull/640/files
 Webrev: https://webrevs.openjdk.java.net/?repo=valhalla&pr=640&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8281463
  Stats: 76 lines in 3 files changed: 44 ins; 8 del; 24 mod
  Patch: https://git.openjdk.java.net/valhalla/pull/640.diff
  Fetch: git fetch https://git.openjdk.java.net/valhalla pull/640/head:pull/640

PR: https://git.openjdk.java.net/valhalla/pull/640



More information about the valhalla-dev mailing list