Bug#757536: eclipse: FTBFS with Java 8: Duplicate methods named spliterator with the parameters () and ()

Emmanuel Bourg ebourg at apache.org
Fri Aug 8 23:51:39 UTC 2014


Source: eclipse
Version: 3.8.1-5.1
Severity: important
User: debian-java at lists.debian.org
Usertags: openjdk-8-transition

Hi,

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

    [mkdir] Created dir: /«PKGBUILDDIR»/build/eclipse-3.8.1-src/plugins/org.eclipse.equinox.event/@dot
    [javac] Compiling 14 source files to /«PKGBUILDDIR»/build/eclipse-3.8.1-src/plugins/org.eclipse.equinox.event/@dot
    [javac] javac: invalid target release: jsr14
    [javac] Usage: javac <options> <source files>
    [javac] use -help for a list of possible options

A fix for this issue has been committed in the Git repository on Alioth,
but another error still breaks the build with Java 8:

     [exec] org.eclipse.osgi error loading hook: org.eclipse.core.runtime.internal.adaptor.EclipseLogHook
     [exec] java.lang.Error: Unresolved compilation problem:
     [exec]     Duplicate methods named spliterator with the parameters () and () are inherited from the types Collection<K> and Iterable<K>
     [exec]
     [exec]     at org.eclipse.osgi.internal.baseadaptor.ArrayMap.<init>(ArrayMap.java:23)
     [exec]     at org.eclipse.equinox.log.internal.ExtendedLogReaderServiceFactory.<init>(ExtendedLogReaderServiceFactory.java:53)
     [exec]     at org.eclipse.equinox.log.internal.LogServiceManager.<init>(LogServiceManager.java:27)
     [exec]     at org.eclipse.core.runtime.internal.adaptor.EclipseLogHook.<init>(EclipseLogHook.java:71)
     [exec]     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

Note that unlike the similar errors in the eclipse-* packages,
this one is not fixed by upgrading the ecj package to the version 3.10.0.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 834 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20140809/67f33765/attachment-0001.sig>


More information about the pkg-java-maintainers mailing list