[Debian-med-packaging] Bug#804091: artemis: FTBFS with Java 8: FastVector.sort(Comparator) cannot implement List.sort(Comparator<? super E>)
Emmanuel Bourg
ebourg at apache.org
Wed Nov 4 21:35:08 UTC 2015
Package: artemis
Version: 16.0.0+dfsg-1
Severity: important
User: debian-java at lists.debian.org
Usertags: openjdk-8-transition
Dear Maintainer,
artemis fails to build with OpenJDK 8, there is a conflict with the sort()
method in FastVector and the newly added sort() method in the java.util.List
interface in Java 8 (the return type isn't the same):
/home/ebourg/packaging/artemis/uk/ac/sanger/artemis/util/FastVector.java:94: error: sort(Comparator) in FastVector cannot implement sort(Comparator<? super E>) in List
public FastVector sort(final Comparator cmp)
^
return type FastVector is not compatible with void
where E is a type-variable:
E extends Object declared in interface List
/home/ebourg/packaging/artemis/uk/ac/sanger/artemis/io/KeyVector.java:37: error: sort(Comparator) in FastVector cannot implement sort(Comparator<? super E>) in List
public class KeyVector extends FastVector
^
return type FastVector is not compatible with void
where E is a type-variable:
E extends Object declared in interface List
You can test the build with OpenJDK 8 by installing default-jdk/0.53 from experimental.
Emmanuel Bourg
More information about the Debian-med-packaging
mailing list