Merge
authorlana
Fri, 21 Apr 2017 03:33:55 +0000
changeset 44795 25c2ace97728
parent 44709 732b85537119 (current diff)
parent 44794 4ad24a9cf021 (diff)
child 44796 5f37a6126a76
child 44868 e85f9eef86b0
child 44869 4d9e8c84bbda
Merge
--- a/nashorn/make/project.properties	Thu Apr 20 18:14:07 2017 +0000
+++ b/nashorn/make/project.properties	Fri Apr 21 03:33:55 2017 +0000
@@ -37,7 +37,8 @@
 
 javadoc.option=\
     -tag "implSpec:a:Implementation Requirements:" \
-    -tag "implNote:a:Implementation Note:"
+    -tag "implNote:a:Implementation Note:" \
+    -tag "moduleGraph:a:Module Graph"
 
 # nashorn version information
 nashorn.version=0.1
--- a/nashorn/src/jdk.scripting.nashorn.shell/share/classes/jdk/nashorn/tools/jjs/Main.java	Thu Apr 20 18:14:07 2017 +0000
+++ b/nashorn/src/jdk.scripting.nashorn.shell/share/classes/jdk/nashorn/tools/jjs/Main.java	Fri Apr 21 03:33:55 2017 +0000
@@ -281,8 +281,7 @@
         }
     }
 
-    // FIXME: needs to be changed to use javase 9 docs later
-    private static String JAVADOC_BASE = "http://download.java.net/jdk9/docs/api/";
+    private static String JAVADOC_BASE = "https://docs.oracle.com/javase/9/docs/api/";
 
     private static void openBrowserForJavadoc(String relativeUrl) {
         try {
--- a/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/linker/JavaAdapterClassLoader.java	Thu Apr 20 18:14:07 2017 +0000
+++ b/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/linker/JavaAdapterClassLoader.java	Fri Apr 21 03:33:55 2017 +0000
@@ -114,7 +114,11 @@
             @Override
             public Class<?> loadClass(final String name, final boolean resolve) throws ClassNotFoundException {
                 try {
-                    Context.checkPackageAccess(name);
+                    final int i = name.lastIndexOf('.');
+                    if(i != -1){
+                        final String pkgName = name.substring(0,i);
+                        Context.checkPackageAccess(pkgName);
+                    }
                     return super.loadClass(name, resolve);
                 } catch (final SecurityException se) {
                     // we may be implementing an interface or extending a class that was
--- a/nashorn/test/TEST.ROOT	Thu Apr 20 18:14:07 2017 +0000
+++ b/nashorn/test/TEST.ROOT	Fri Apr 21 03:33:55 2017 +0000
@@ -12,3 +12,6 @@
 
 # Use new module options
 useNewOptions=true
+
+# Use --patch-module instead of -Xmodule:
+useNewPatchModule=true