changeset 13464:ced5969cff68

Allow illegal access by default
author alanb
date Fri, 02 Jun 2017 17:31:24 +0100
parents b7de86ca4cc5
children 9ace2316ce1c
files src/share/vm/runtime/arguments.cpp
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/runtime/arguments.cpp	Thu Jun 01 19:43:56 2017 +0100
+++ b/src/share/vm/runtime/arguments.cpp	Fri Jun 02 17:31:24 2017 +0100
@@ -2937,8 +2937,12 @@
       if (res != JNI_OK) {
         return res;
       }
+    } else if (match_option(option, "--illegal-access=", &tail)) {
+      if (!create_property("jdk.module.illegalAccess", tail, ExternalProperty)) {
+        return JNI_ENOMEM;
+      }
     } else if (match_option(option, "--permit-illegal-access")) {
-      if (!create_property("jdk.module.permitIllegalAccess", "true", ExternalProperty)) {
+      if (!create_property("jdk.module.illegalAccess", "warn", ExternalProperty)) {
         return JNI_ENOMEM;
       }
     // -agentlib and -agentpath