< prev index next >

test/langtools/tools/lib/toolbox/JarTask.java

Print this page
rev 55068 : 8224908: Revert: 8216553: JrtFileSystemProvider getPath(URI) omits /modules element from file path
Reviewed-by:

*** 375,387 **** * In Symbol files (i.e. ct.sym) the underlying entry is prefixed META-INF/sym/<base>. */ private final Pattern jarEntry = Pattern.compile(".*!/(?:META-INF/sym/[^/]+/)?(.*)"); /* ! * A jrt: URL is of the form jrt:/<module>/<package>/<file> */ ! private final Pattern jrtEntry = Pattern.compile("/([^/]+)/(.*)"); /* * A file: URL is of the form file:/path/to/{modules,patches}/<module>/<package>/<file> */ private final Pattern fileEntry = Pattern.compile(".*/(?:modules|patches)/([^/]+)/(.*)"); --- 375,387 ---- * In Symbol files (i.e. ct.sym) the underlying entry is prefixed META-INF/sym/<base>. */ private final Pattern jarEntry = Pattern.compile(".*!/(?:META-INF/sym/[^/]+/)?(.*)"); /* ! * A jrt: URL is of the form jrt:/modules/<module>/<package>/<file> */ ! private final Pattern jrtEntry = Pattern.compile("/modules/([^/]+)/(.*)"); /* * A file: URL is of the form file:/path/to/{modules,patches}/<module>/<package>/<file> */ private final Pattern fileEntry = Pattern.compile(".*/(?:modules|patches)/([^/]+)/(.*)");
< prev index next >