Merge
authorduke
Wed, 05 Jul 2017 21:40:17 +0200
changeset 37825 1bcb42ccea97
parent 37824 cc643de7cb06 (diff)
parent 37820 abe7aa589158 (current diff)
child 37836 636014c0c4a2
Merge
jdk/make/data/classlist/classlist.aix
jdk/make/data/classlist/classlist.linux
jdk/make/data/classlist/classlist.macosx
jdk/make/data/classlist/classlist.solaris
jdk/make/data/classlist/classlist.windows
jdk/src/java.base/share/classes/jdk/internal/module/Hasher.java
jdk/src/java.base/share/classes/sun/security/ssl/SupportedEllipticCurvesExtension.java
jdk/src/java.base/share/classes/sun/security/ssl/SupportedEllipticPointFormatsExtension.java
jdk/test/javax/transaction/testng/TEST.properties
jdk/test/sun/security/provider/SecureRandom/SelfSeed.java
jdk/test/tools/jlink/hashes/HashesTest.java
jdk/test/tools/jlink/hashes/newsrc/m2/module-info.java
jdk/test/tools/jlink/hashes/newsrc/m2/org/m2/Util.java
jdk/test/tools/jlink/hashes/newsrc/not_matched/module-info.java
jdk/test/tools/jlink/hashes/newsrc/not_matched/org/not_matched/Name.java
jdk/test/tools/jlink/hashes/src/m1/module-info.java
jdk/test/tools/jlink/hashes/src/m1/org/m1/Main.java
jdk/test/tools/jlink/hashes/src/m2/module-info.java
jdk/test/tools/jlink/hashes/src/m2/org/m2/Util.java
jdk/test/tools/jlink/hashes/src/not_matched/module-info.java
jdk/test/tools/jlink/hashes/src/not_matched/org/not_matched/Name.java
jdk/test/tools/launcher/modules/addmods/src/app/Main.java
jdk/test/tools/launcher/modules/addmods/src/lib/jdk/lib/Util.java
jdk/test/tools/launcher/modules/addmods/src/lib/module-info.java
--- a/corba/.hgtags	Wed Jul 05 21:40:09 2017 +0200
+++ b/corba/.hgtags	Wed Jul 05 21:40:17 2017 +0200
@@ -359,3 +359,4 @@
 10d175b0368c30f54350fc648adc41b94ce357ee jdk-9+114
 7bab1b1b36824924b1c657a8419369ba93d198d3 jdk-9+115
 7dfa7377a5e601b8f740741a9a80e04c72dd04d6 jdk-9+116
+7a1b36bf2fe55a9a7732489ccdd326c910329a7e jdk-9+117
--- a/corba/src/java.corba/share/classes/com/sun/corba/se/impl/presentation/rmi/StubFactoryDynamicBase.java	Wed Jul 05 21:40:09 2017 +0200
+++ b/corba/src/java.corba/share/classes/com/sun/corba/se/impl/presentation/rmi/StubFactoryDynamicBase.java	Wed Jul 05 21:40:17 2017 +0200
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2004, 2013 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2004, 2013, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
--- a/corba/src/java.corba/share/classes/com/sun/tools/corba/se/idl/som/cff/FileLocator.java	Wed Jul 05 21:40:09 2017 +0200
+++ b/corba/src/java.corba/share/classes/com/sun/tools/corba/se/idl/som/cff/FileLocator.java	Wed Jul 05 21:40:17 2017 +0200
@@ -222,7 +222,8 @@
 
     /**
      * locateFileInClassPath returns a DataInputStream that can be used
-     * to read the requested file.  The CLASSPATH is used to locate the file.
+     * to read the requested file.  The resource is located in the java.corba
+     * module or if not found, then the CLASSPATH is searched.
      *
      * @param fileName The name of the file to locate.  The file name
      * may be qualified with a partial path name, using '/' as the separator
@@ -238,6 +239,12 @@
     public static DataInputStream locateFileInClassPath (String fileName)
         throws FileNotFoundException, IOException {
 
+        // The resource should be in the java.corba module
+        InputStream in = FileLocator.class.getResourceAsStream("/" + fileName);
+        if (in != null) {
+            return new DataInputStream(in);
+        }
+
         boolean notFound = true;
         StringTokenizer st;
         String path = "";
--- a/corba/src/java.corba/share/classes/module-info.java	Wed Jul 05 21:40:09 2017 +0200
+++ b/corba/src/java.corba/share/classes/module-info.java	Wed Jul 05 21:40:17 2017 +0200
@@ -71,7 +71,4 @@
         java.naming;
     exports com.sun.jndi.url.iiopname to
         java.naming;
-
-    provides javax.naming.spi.InitialContextFactory
-        with com.sun.jndi.cosnaming.CNCtxFactory;
 }