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

Jorn Vernee jvernee at openjdk.org
Wed Jun 28 11:31:12 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:

  don't throw error if Enable-Native-Access is set

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

Changes:
  - all: https://git.openjdk.org/panama-foreign/pull/843/files
  - new: https://git.openjdk.org/panama-foreign/pull/843/files/3892562e..387205af

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

  Stats: 11 lines in 3 files changed: 0 ins; 7 del; 4 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