--- 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;
}