Opened 4 years ago

Last modified 17 months ago

#1651 assigned defect

scala tests will break with java 8 (oracle)

Reported by: kay Owned by: str4d
Priority: minor Milestone: 0.9.27
Component: other Version: 0.9.21
Keywords: Cc:
Parent Tickets: #1767

Description

Using jdk1.8.0_51 or jdk1.8.0_45 leads to the following scala problem:

 [scalac] Compiling 10 source files to /some/path/core/java/build/obj_scala
   [scalac] error: error while loading CharSequence, class file '/other/path/jdk1.8.0_51/jre/lib/rt.jar(java/lang/CharSequence.class)' is broken
   [scalac] (bad constant pool tag 18 at byte 10)
   [scalac] error: error while loading Comparator, class file '/other/path/jdk1.8.0_51/jre/lib/rt.jar(java/util/Comparator.class)' is broken
   [scalac] (bad constant pool tag 18 at byte 20)
   [scalac] two errors found

jdk1.70 works fine.

Subtickets (add)

Change History (4)

comment:1 Changed 4 years ago by zzz

  • Component changed from unspecified to other
  • Owner set to str4d
  • Status changed from new to assigned

Maybe our problem, or maybe a problem with your scala installation. Just guessing, to be investigated.

comment:2 Changed 4 years ago by kay

Is there a list somewhere which lib-versions are necessary?

The build.xmls or properties don't contain the version information for neither scala nor mockito,
but the latter is not the problem.

I used the following versions:

  • mockito-all 1.10.19
  • scala 2.9.2 (as it comes with debian jessie currently)
  • scala-test 1.9.2

I also tried some newer versions of scala and scala-test, but these seemed to be even worse in combination
in with both java7 and java8.

comment:3 Changed 3 years ago by zzz

  • Milestone changed from undecided to 0.9.27
  • Parent Tickets set to 1767
  • Priority changed from maintenance to minor

comment:4 Changed 17 months ago by zzz

str4d, is there any way you can make the tests compatible with mockito 1.9/1.10? These versions are widely available in Debian and Ubuntu. The 2.5 version is not available anywhere in those distributions. It's a huge pita to set up the dependencies.

See also parent ticket #1767

Note: See TracTickets for help on using tickets.