When trying to build 3.7.1, it failed with this error,

# Java build.
ant -f debian/java-build.xml jar
Buildfile: /<<PKGBUILDDIR>>/debian/java-build.xml

generate:
[mkdir] Created dir: /<<PKGBUILDDIR>>/java/core/target/generated-sources
     [echo] src

compile:
    [mkdir] Created dir: /<<PKGBUILDDIR>>/java/core/target/classes
[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 144 source files to /<<PKGBUILDDIR>>/java/core/target/classes [javac] warning: [options] bootstrap class path not set in conjunction with -source 6 [javac] warning: [options] source value 6 is obsolete and will be removed in a future release [javac] warning: [options] target value 1.6 is obsolete and will be removed in a future release [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options. [javac] /<<PKGBUILDDIR>>/java/core/src/main/java/com/google/protobuf/RopeByteString.java:584: error: diamond operator is not supported in -source 6 [javac] private final ArrayDeque<ByteString> prefixesStack = new ArrayDeque<>(); [javac] ^
    [javac]   (use -source 7 or higher to enable diamond operator)
    [javac] 1 error
    [javac] 4 warnings

BUILD FAILED
/<<PKGBUILDDIR>>/debian/java-build.xml:38: Compile failed; see the compiler error output for details.

Reply via email to