Source: libnb-javaparser-java
Severity: important
Tags: ftbfs sid bookworm
User: [email protected]
Usertags: default-java17

libnb-javaparser-java fails to build with OpenJDK 17 due to ambiguous calls
to FileSystems.newFileSystem()


  -do-compile:
      [mkdir] Created dir: /<<PKGBUILDDIR>>/make/netbeans/nb-javac/build/empty
      [mkdir] Created dir: 
/<<PKGBUILDDIR>>/make/netbeans/nb-javac/build/generated-sources/ap-source-output
      [javac] Compiling 588 source files to 
/<<PKGBUILDDIR>>/make/netbeans/nb-javac/build/classes
      [javac] 
/<<PKGBUILDDIR>>/src/jdk.compiler/share/classes/com/sun/tools/javac/file/JavacFileManager.java:519:
 error: reference to newFileSystem is ambiguous
      [javac]                 this.fileSystem = 
FileSystems.newFileSystem(archivePath, null);
      [javac]                                              ^
      [javac]   both method newFileSystem(Path,ClassLoader) in FileSystems and 
method newFileSystem(Path,Map<String,?>) in FileSystems match
      [javac] 
/<<PKGBUILDDIR>>/src/jdk.compiler/share/classes/com/sun/tools/javac/file/Locations.java:380:
 error: reference to newFileSystem is ambiguous
      [javac]                             FileSystems.newFileSystem(file, 
null).close();
      [javac]                                        ^
      [javac]   both method newFileSystem(Path,ClassLoader) in FileSystems and 
method newFileSystem(Path,Map<String,?>) in FileSystems match
      [javac] 
/<<PKGBUILDDIR>>/src/jdk.compiler/share/classes/com/sun/tools/javac/platform/JDKPlatformProvider.java:77:
 error: reference to newFileSystem is ambiguous
      [javac]             try (FileSystem fs = 
FileSystems.newFileSystem(ctSymFile, null);
      [javac]                                             ^
      [javac]   both method newFileSystem(Path,ClassLoader) in FileSystems and 
method newFileSystem(Path,Map<String,?>) in FileSystems match
      [javac] 
/<<PKGBUILDDIR>>/src/jdk.compiler/share/classes/com/sun/tools/javac/platform/JDKPlatformProvider.java:122:
 error: reference to newFileSystem is ambiguous
      [javac]                         ctSym2FileSystem.put(file, fs = 
FileSystems.newFileSystem(file, null));
      [javac]                                                                   
 ^
      [javac]   both method newFileSystem(Path,ClassLoader) in FileSystems and 
method newFileSystem(Path,Map<String,?>) in FileSystems match
      [javac] Note: Some input files use or override a deprecated API.
      [javac] Note: Recompile with -Xlint:deprecation for details.
      [javac] Note: Some input files use unchecked or unsafe operations.
      [javac] Note: Recompile with -Xlint:unchecked for details.
      [javac] 4 errors

__
This is the maintainer address of Debian's Java team
<https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-java-maintainers>.
 Please use
[email protected] for discussions and questions.

Reply via email to