--- old/jdk/src/jdk.jlink/share/classes/jdk/tools/jlink/internal/ResourcePoolEntryFactory.java 2016-12-07 23:01:46.000000000 -0800 +++ new/jdk/src/jdk.jlink/share/classes/jdk/tools/jlink/internal/ResourcePoolEntryFactory.java 2016-12-07 23:01:46.000000000 -0800 @@ -51,6 +51,12 @@ original.path(), original.type(), file); } + public static ResourcePoolEntry createSymbolicLink(String path, + ResourcePoolEntry.Type type, + ResourcePoolEntry target) { + return new SymLinkResourcePoolEntry(moduleFrom(path), path, type, target); + } + private static String moduleFrom(String path) { Objects.requireNonNull(path); if (path.isEmpty() || path.charAt(0) != '/') {