This commit is contained in:
Sean Mullan 2016-12-02 14:24:10 -05:00
commit 0bb64f5e6a
2 changed files with 4 additions and 2 deletions

View File

@ -146,9 +146,10 @@ public class GenModuleInfoSource {
for (String l : lines) {
writer.println(l);
if (l.trim().startsWith("module ")) {
writer.format(" // source file: %s%n", sourceFile);
// print URI rather than file path to avoid escape
writer.format(" // source file: %s%n", sourceFile.toUri());
for (Path file: extraFiles) {
writer.format(" // %s%n", file);
writer.format(" // %s%n", file.toUri());
}
break;
}

View File

@ -28,6 +28,7 @@
* @modules jdk.naming.rmi/com.sun.jndi.rmi.registry java.rmi/sun.rmi.registry
* java.rmi/sun.rmi.server java.rmi/sun.rmi.transport java.rmi/sun.rmi.transport.tcp
* @library ../../../../../../java/rmi/testlibrary
* @build TestLibrary
* @compile --add-modules jdk.naming.rmi ContextWithNullProperties.java
* @run main ContextWithNullProperties
*/