Skip to content
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

Bytecode error compiling against jdk8 #7129

Closed
scabug opened this issue Feb 14, 2013 · 5 comments
Closed

Bytecode error compiling against jdk8 #7129

scabug opened this issue Feb 14, 2013 · 5 comments

Comments

@scabug
Copy link

scabug commented Feb 14, 2013

When compiling against the jdk8 java.time.LocalDateTime class, the following compiler error occurs:

scala: error while loading LocalDateTime, class file '/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/rt.jar(java/time/LocalDateTime.class)' is broken
(class java.lang.RuntimeException/bad constant pool tag 18 at byte 223)

@scabug
Copy link
Author

scabug commented Feb 14, 2013

Imported From: https://issues.scala-lang.org/browse/SI-7129?orig=1
Reporter: Curtis Stanford (countfloyd)
Affected Versions: 2.10.0
Duplicates #5876

@scabug
Copy link
Author

scabug commented Mar 28, 2013

Curtis Stanford (countfloyd) said:
Just being able to compile against jdk8 (class version 52) class files would be very helpful. It seems to work unless bytecode with lambdas is encountered.

@scabug
Copy link
Author

scabug commented Mar 28, 2013

@magarciaEPFL said:
Or so it seems from a distance.

@scabug
Copy link
Author

scabug commented May 21, 2013

Curtis Stanford (countfloyd) said:
Yah, it's not the lambdas. It still would be great to compile against jdk8 class files.

@scabug
Copy link
Author

scabug commented Sep 30, 2013

Pete de Zwart (Atlassian) (pdzwart-at-atlassian.com) said:
We get a similar error for CharSequence with Scala compilation through Maven against both JDK 1.8.0_b103 & 1.8.0_b108:

27-Sep-2013 05:46:59	[ERROR] error: error while loading CharSequence, class file '/opt/java/x64/jdk1.8.0_b103/jre/lib/rt.jar(java/lang/CharSequence.class)' is broken
27-Sep-2013 05:46:59	[INFO] (class java.lang.RuntimeException/bad constant pool tag 18 at byte 10)

@scabug scabug closed this as completed Dec 19, 2014
@scabug scabug added this to the 2.10.2-RC1 milestone Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant