8169816: Move src.zip and jrt-fs.jar under the lib directory
Reviewed-by: alanb, erikj, jjg
This commit is contained in:
parent
f9f47ab866
commit
9a86634434
@ -1396,7 +1396,8 @@ public class Locations {
|
||||
}
|
||||
|
||||
private void update(Path p) {
|
||||
if (!isCurrentPlatform(p) && !Files.exists(p.resolve("jrt-fs.jar")) && !Files.exists(systemJavaHome.resolve("modules")))
|
||||
if (!isCurrentPlatform(p) && !Files.exists(p.resolve("lib").resolve("jrt-fs.jar")) &&
|
||||
!Files.exists(systemJavaHome.resolve("modules")))
|
||||
throw new IllegalArgumentException(p.toString());
|
||||
systemJavaHome = p;
|
||||
modules = null;
|
||||
|
@ -1273,7 +1273,7 @@ class SourceCodeAnalysisImpl extends SourceCodeAnalysis {
|
||||
}
|
||||
List<Path> result = new ArrayList<>();
|
||||
Path home = Paths.get(System.getProperty("java.home"));
|
||||
Path srcZip = home.resolve("src.zip");
|
||||
Path srcZip = home.resolve("lib").resolve("src.zip");
|
||||
if (!Files.isReadable(srcZip))
|
||||
srcZip = home.getParent().resolve("src.zip");
|
||||
if (Files.isReadable(srcZip)) {
|
||||
|
Loading…
Reference in New Issue
Block a user