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

Roger Riggs rriggs at openjdk.java.net
Tue Jun 7 14:26:11 UTC 2022


> Add support to java.lang.reflect.AccessFlag ACC_IDENTITY, ACC_VALUE, and ACC_PRIMITIVE.
> Added corresponding flags to j.l.reflect.Modifier so the "source" of the AccessFlag is the Modifer mask.
> Remove PERMITS_VALUE; moving the definition used by HotSpot to HotSpot code.
> 
> Add comments to java.l.reflect.Modifier suggesting use of AccessFlag instead and limitations.

Roger Riggs has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains four additional commits since the last revision:

 - Merge branch 'lworld' into 8281463-value-modifiers
 - Add Class.is(AccessFlag) to test for a single flag.
 - Restore AccessFlag SUPER
 - 8281463: [lworld] VALUE / PRIMITIVE modifiers should be supported by reflection
   Use java.lang.reflect.AccessFlag for equivalent functions for value objects.
   Corrected ModuleDescriptor.STATIC flags to be STATIC_PHASE
   Added flags to j.l.reflect.Modifier.

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

Changes:
  - all: https://git.openjdk.java.net/valhalla/pull/698/files
  - new: https://git.openjdk.java.net/valhalla/pull/698/files/f83c35fd..946eea0f

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=valhalla&pr=698&range=02
 - incr: https://webrevs.openjdk.java.net/?repo=valhalla&pr=698&range=01-02

  Stats: 573 lines in 33 files changed: 377 ins; 108 del; 88 mod
  Patch: https://git.openjdk.java.net/valhalla/pull/698.diff
  Fetch: git fetch https://git.openjdk.java.net/valhalla pull/698/head:pull/698

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



More information about the valhalla-dev mailing list