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

Bug#750464: scala: FTBFS with Java 8: class file 'CharSequence.class' is broken (bad constant pool tag 18 at byte 10)



Source: scala
Version: 2.9.2+dfsg-2
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:
  
    locker.lib:
        [mkdir] Created dir: /«BUILDDIR»/scala-2.9.2+dfsg/build/locker/classes/library
        [javac] Compiling 25 source files to /«BUILDDIR»/scala-2.9.2+dfsg/build/locker/classes/library
        [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5
        [javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
        [javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
        [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
        [javac] 4 warnings
    [scalacfork] Compiling 698 files to /«BUILDDIR»/scala-2.9.2+dfsg/build/locker/classes/library
    [scalacfork] error: error while loading CharSequence, class file '/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/rt.jar(java/lang/CharSequence.class)' is broken
    [scalacfork] (bad constant pool tag 18 at byte 10)
    [scalacfork] error: error while loading AnnotatedElement, class file '/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/rt.jar(java/lang/reflect/AnnotatedElement.class)' is broken
    [scalacfork] (bad constant pool tag 18 at byte 76)


The version 2.10.4+dfsg-1 currently in Git doesn't have this error, but the build still fails with:

    BUILD FAILED
    /home/ebourg/packaging/scala/build.xml:59: The following error occurred while executing this line:
    /home/ebourg/packaging/scala/build.xml:88: The following error occurred while executing this line:
    /home/ebourg/packaging/scala/build.xml:365: JDK 1.8 is not supported by this build!


OpenJDK 8 packages are available for testing here:
    http://87.98.165.193/debian/openjdk-8u5-b13/


Reply to: