Bug#874156: FTBFS with Java 9: ambiguous put()

Chris West solo-debianbugs at goeswhere.com
Sun Sep 3 16:24:29 UTC 2017


Source: ow-util-ant-tasks
Version: 1.3.2
Severity: normal
User: debian-java at lists.debian.org
Usertags: default-java9

This package fails to build with default-jdk pointing to openjdk-9-jdk.
Please fix it, so that we can start the transition to Java 9.
The wiki has some common problems and their solutions:
https://wiki.debian.org/Java/Java9Pitfalls

This is probably due to 1.6 related generics changes,
or because an interface gained a new method. In either case,
the code needs fixing.

Build log:

    [javac] /build/ow-util-ant-tasks-1.3.2/src/org/objectweb/util/ant/MultipleCopy.java:80: error: no suitable method found for put(String,String)
    [javac] 					fileCopyMap.put(file.getAbsolutePath(), destFile.getAbsolutePath());
    [javac] 					           ^
    [javac]     method Map.put(String,String[]) is not applicable
    [javac]       (argument mismatch; String cannot be converted to String[])
    [javac]     method Dictionary.put(String,String[]) is not applicable
    [javac]       (argument mismatch; String cannot be converted to String[])
    [javac]     method Hashtable.put(String,String[]) is not applicable
    [javac]       (argument mismatch; String cannot be converted to String[])
    [javac] /build/ow-util-ant-tasks-1.3.2/src/org/objectweb/util/ant/MultipleCopy.java:88: error: no suitable method found for put(String,String)
    [javac] 					  fileCopyMap.put(file.getAbsolutePath(), destFile.getAbsolutePath());
    [javac] 					             ^
    [javac]     method Map.put(String,String[]) is not applicable
    [javac]       (argument mismatch; String cannot be converted to String[])
    [javac]     method Dictionary.put(String,String[]) is not applicable
    [javac]       (argument mismatch; String cannot be converted to String[])
    [javac]     method Hashtable.put(String,String[]) is not applicable
    [javac]       (argument mismatch; String cannot be converted to String[])
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 2 errors
    [javac] 9 warnings



Cheers,
Chris.



More information about the pkg-java-maintainers mailing list