This commit is contained in:
David Dehaven 2016-12-05 08:36:16 -08:00
commit f4f6ea13ba

View File

@ -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)) {