< prev index next >
src/jdk.compiler/share/classes/com/sun/tools/javac/platform/JDKPlatformProvider.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2014, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -111,11 +111,11 @@
static {
SUPPORTED_JAVA_PLATFORM_VERSIONS = new TreeSet<>(NUMERICAL_COMPARATOR);
Path ctSymFile = findCtSym();
if (Files.exists(ctSymFile)) {
- try (FileSystem fs = FileSystems.newFileSystem(ctSymFile, null);
+ try (FileSystem fs = FileSystems.newFileSystem(ctSymFile, (ClassLoader)null);
DirectoryStream<Path> dir =
Files.newDirectoryStream(fs.getRootDirectories().iterator().next())) {
for (Path section : dir) {
if (section.getFileName().toString().contains("-"))
continue;
@@ -250,11 +250,11 @@
// file == ${jdk.home}/lib/ct.sym
if (Files.exists(file)) {
try {
FileSystem fs = ctSym2FileSystem.get(file);
if (fs == null) {
- ctSym2FileSystem.put(file, fs = FileSystems.newFileSystem(file, null));
+ ctSym2FileSystem.put(file, fs = FileSystems.newFileSystem(file, (ClassLoader)null));
}
Path root = fs.getRootDirectories().iterator().next();
boolean hasModules =
Feature.MODULES.allowedInSource(Source.lookup(sourceVersion));
< prev index next >