Bug#941737: maven-repo-helper: FTBFS: error: diamond operator is not supported in -source 6

merkys at debian.org merkys at debian.org
Fri Oct 4 13:45:21 BST 2019


Source: maven-repo-helper
Version: 1.9.4
Tags: ftbfs

Hello,

The current maven-repo-helper source (unreleased 1.9.4, git commit
f2deb8d9500b5dfe0dee8c9566ba76b2fb7fb1ba) FTBFS on chroot with the
following:

compile:
    [mkdir] Created dir: /<<PKGBUILDDIR>>/build/generated-sources
    [javac] /<<PKGBUILDDIR>>/debian/build.xml:45: warning:
'includeantruntime' was not set, defaulting to build.sysclasspath=last;
set to false for repeatable builds
    [javac] Using javac -source 1.5 is no longer supported, switching to 6
    [javac] Using javac -target 1.5 is no longer supported, switching to 6
    [javac] Compiling 27 source files to /<<PKGBUILDDIR>>/build/classes
    [javac]
/<<PKGBUILDDIR>>/src/main/java/org/debian/maven/cliargs/ArgumentsMap.java:14:
error: diamond operator is not supported in -source 6
    [javac]     private final Map<String, List<String>> longMap = new
HashMap<>();
   
[javac]                                                                   ^
    [javac]   (use -source 7 or higher to enable diamond operator)

(trimmed for brevity)

Best,
Andrius



More information about the pkg-java-maintainers mailing list