[foreign-memaccess+abi] RFR: 8310659: The jar tool should support allowing access to restricted methods from executable jars [v2]

Jorn Vernee jvernee at openjdk.org
Tue Jun 27 13:53:57 UTC 2023


> Add `Enable-Native-Access` jar attribute. `Enable-Native-Access: true` is equal to passing `--enable-native-access=ALL-UNNAMED` on the command line when running an executable jar (using `-jar <jar file>`).
> 
> Question: right now I've implemented this to check if the attribute value is exactly `true`, otherwise it is ignored. Should we only allow `true` or `false`, and throw an error on other values?
> 
> Reviewer note: I've factored some of a test code for analyzing output to `TestEnableNativeAccessBase` for the enable native access tests.

Jorn Vernee has updated the pull request incrementally with one additional commit since the last revision:

  review comments

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

Changes:
  - all: https://git.openjdk.org/panama-foreign/pull/843/files
  - new: https://git.openjdk.org/panama-foreign/pull/843/files/2ab474b3..99638413

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=panama-foreign&pr=843&range=01
 - incr: https://webrevs.openjdk.org/?repo=panama-foreign&pr=843&range=00-01

  Stats: 33 lines in 2 files changed: 13 ins; 8 del; 12 mod
  Patch: https://git.openjdk.org/panama-foreign/pull/843.diff
  Fetch: git fetch https://git.openjdk.org/panama-foreign.git pull/843/head:pull/843

PR: https://git.openjdk.org/panama-foreign/pull/843


More information about the panama-dev mailing list