[foreign-preview] RFR: 8282210: Relax policy for restricted method invocation

Julia Boes jboes at openjdk.java.net
Thu Feb 24 11:20:03 UTC 2022


This change adapts the policy for restricted method invocation, which is controlled via the --enable-native-access flag. 

As a transitional mode, access to restricted methods is allowed when the flag is not specified, with a runtime warning being omitted on first invocation. This mode supports applications and use cases where the flag cannot easily be specified.

The behaviour for when the flag is specified remains unchanged.

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

Commit messages:
 - Merge remote-tracking branch 'origin/warn-native-access' into warn-native-access
 - refactor module check and adapt test
 - account for unnamed module
 - update warning output
 - incorporate existing test
 - Merge branch 'foreign-preview' into warn-native-access
 - refactor test
 - Merge branch 'foreign-preview' into warn-native-access
 - add test and implementation change
 - Merge branch 'foreign-preview' into warn-native-access
 - ... and 5 more: https://git.openjdk.java.net/panama-foreign/compare/a225c6e3...70cf305a

Changes: https://git.openjdk.java.net/panama-foreign/pull/655/files
 Webrev: https://webrevs.openjdk.java.net/?repo=panama-foreign&pr=655&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8282210
  Stats: 658 lines in 16 files changed: 356 ins; 246 del; 56 mod
  Patch: https://git.openjdk.java.net/panama-foreign/pull/655.diff
  Fetch: git fetch https://git.openjdk.java.net/panama-foreign pull/655/head:pull/655

PR: https://git.openjdk.java.net/panama-foreign/pull/655


More information about the panama-dev mailing list