Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
12.0, 12.1
-
None
Description
When attempting to build from netbeans source, I get a compile error when it goes to build langtools. Here are the details:
D:\netbeans\incubator-netbeans\nbbuild\build\langtools\src\jdk.compiler\share\classes\com\sun\tools\javac\file\JavacFileManager.java:519: error: reference to newFileSystem is ambiguous this.fileSystem = FileSystems.newFileSystem(archivePath, null); both method newFileSystem(Path,ClassLoader) in FileSystems and method newFileSystem(Path,Map<String,?>) in FileSystems match D:\netbeans\incubator-netbeans\nbbuild\build\langtools\src\jdk.compiler\share\classes\com\sun\tools\javac\file\Locations.java:383: error: reference to newFileSystem is ambiguous FileSystems.newFileSystem(file, null).close(); both method newFileSystem(Path,ClassLoader) in FileSystems and method newFileSystem(Path,Map<String,?>) in FileSystems match D:\netbeans\incubator-netbeans\nbbuild\build\langtools\src\jdk.compiler\share\classes\com\sun\tools\javac\platform\JDKPlatformProvider.java:80: error: reference to newFileSystem is ambiguous try (FileSystem fs = FileSystems.newFileSystem(ctSymFile, null); both method newFileSystem(Path,ClassLoader) in FileSystems and method newFileSystem(Path,Map<String,?>) in FileSystems match D:\netbeans\incubator-netbeans\nbbuild\build\langtools\src\jdk.compiler\share\classes\com\sun\tools\javac\platform\JDKPlatformProvider.java:120: error: reference to newFileSystem is ambiguous ctSym2FileSystem.put(file, fs = FileSystems.newFileSystem(file, null)); both method newFileSystem(Path,ClassLoader) in FileSystems and method newFileSystem(Path,Map<String,?>) in FileSystems match