Skip to content

"Unsupported class file major version 56" error in JDK 12 build #864

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
plokhotnyuk opened this issue Feb 16, 2019 · 4 comments
Closed

"Unsupported class file major version 56" error in JDK 12 build #864

plokhotnyuk opened this issue Feb 16, 2019 · 4 comments
Assignees

Comments

@plokhotnyuk
Copy link
Contributor

plokhotnyuk commented Feb 16, 2019

[jsoniter-scala] [error] ## Exception when compiling 5 sources to /home/jenkins/workspace/scala-2.12.x-jdk12-integrate-community-build/target-0.9.16/project-builds/jsoniter-scala-f34d7e137bb3b09515c1eb076c6f60023632077e/jsoniter-scala-core/target/scala-2.12/classes
[jsoniter-scala] [error] Unsupported class file major version 56

Here is a list of projects that are immediately affected by this kind of error in the latest build:

  • breeze
  • curryhoward
  • log4s
  • jsoniter-scala
  • scala-async
  • scala-partest
  • scalaz
  • utest
@SethTisue SethTisue self-assigned this Feb 20, 2019
@SethTisue
Copy link
Member

SethTisue commented Feb 20, 2019

thanks for the report. I'm not sure what the cause is. I plan to investigate, but I have some other, more pressing community build stuff to attend to first. I've assigned myself the issue so I don't forget.

@SethTisue
Copy link
Member

SethTisue commented Feb 21, 2019

reproducible outside of dbuild, in e.g. scala-async with just compile

the problem is also present with ++2.13.0-M5 but goes away with ++2.13.0-pre-481a78b!. that and the error message strongly suggest that fixing this requires moving to ASM 7, as was done for the 2.13.x series by scala/scala#7384

an existing ticket in this general area: scala/bug#11372

@SethTisue
Copy link
Member

hopefully scala/scala#7780 will do the trick

@SethTisue
Copy link
Member

it seems very likely that scala/bug#11372 is the only bug here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants