[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#745090: jitsi: FTBFS with Java 8: remove(Object,Object) in MultiMap clashes with remove(Object,Object) in Map



Source: jitsi
Version: 2.4.4997-1
Severity: important
User: debian-java@lists.debian.org
Usertags: openjdk-8-transition

Hi,

During a rebuild of all Java packages in sid with OpenJDK 8,
your package failed to build with the following error:


  [jain-javac] /«PKGBUILDDIR»/lib/src/jsip/src/gov/nist/core/MultiValueMapImpl.java:35: error: name clash: remove(Object,Object) in Map and remove(K,V) in MultiValueMap have the same erasure, yet neither overrides the other
  [jain-javac] public class MultiValueMapImpl<V> implements MultiValueMap<String, V>, Cloneable {
  [jain-javac]        ^
  [jain-javac]   where K,V are type-variables:
  [jain-javac]     K extends Object declared in interface MultiValueMap
  [jain-javac]     V extends Object declared in interface MultiValueMap
  [jain-javac] /«PKGBUILDDIR»/lib/src/jsip/src/gov/nist/core/MultiValueMapImpl.java:153: error: name clash: remove(String,V#1) in MultiValueMapImpl overrides a method whose erasure is the same as another method, yet neither overrides the other
  [jain-javac]     public Object remove(String key, V item) {
  [jain-javac]                   ^
  [jain-javac]   first method:  remove(Object,Object) in Map
  [jain-javac]   second method: remove(K,V#2) in MultiValueMap
  [jain-javac]   where V#1,K,V#2 are type-variables:
  [jain-javac]     V#1 extends Object declared in class MultiValueMapImpl
  [jain-javac]     K extends Object declared in interface MultiValueMap
  [jain-javac]     V#2 extends Object declared in interface MultiValueMap
  [jain-javac] /«PKGBUILDDIR»/lib/src/jsip/src/gov/nist/core/MultiValueMap.java:8: error: name clash: remove(K,V) in MultiValueMap and remove(Object,Object) in Map have the same erasure, yet neither overrides the other
  [jain-javac]     public Object remove( K key, V item );
  [jain-javac]                   ^
  [jain-javac]   where K,V are type-variables:
  [jain-javac]     K extends Object declared in interface MultiValueMap
  [jain-javac]     V extends Object declared in interface MultiValueMap
  [jain-javac] /«PKGBUILDDIR»/lib/src/jsip/src/gov/nist/core/MultiMap.java:35: error: remove(Object,Object) in MultiMap clashes with remove(Object,Object) in Map
  [jain-javac]     public Object remove( Object key, Object item );
  [jain-javac]                   ^
  [jain-javac]   return type Object is not compatible with boolean
  [jain-javac] Note: Some input files use or override a deprecated API.
  [jain-javac] Note: Recompile with -Xlint:deprecation for details.
  [jain-javac] Note: Some input files use unchecked or unsafe operations.
  [jain-javac] Note: Recompile with -Xlint:unchecked for details.
  [jain-javac] 4 errors
  [jain-javac] 58 warnings


The full build log is available from:
    http://87.98.165.193/debian/openjdk8-rebuild/logs-failed-jdk8/jitsi_2.4.4997-1_unstable_jdk8.log

You can download OpenJDK 8 packages for testing here:
    http://87.98.165.193/debian/openjdk-8u5-b13/


Reply to: