Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-4716

Netbeans source will not build under Java 13+ (Ambigous reference)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 12.0, 12.1
    • ?
    • platform - Other
    • 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

      Attachments

        Activity

          People

            Unassigned Unassigned
            Sir Intellegence Austin Stephens
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: