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
"bad constant pool index" when compiling against Java class compiled by the Eclipse Java compiler #7002
Comments
Imported From: https://issues.scala-lang.org/browse/SI-7002?orig=1
|
@skyluc said: I tested the same jar with javac, and it compiles and run without any problem. Test class: package ide.issue.security;
import ide.issue.session.JavaClass;
public class JavaTest {
public static void main(String[] args) {
new JavaTest().test();
}
public void test() {
JavaClass j= new JavaClass();
j.toString();
}
} |
@skyluc said: One comment which might be interesting for the Scala compiler:
|
@retronym said: |
Original report (Scala IDE): #1001402
Twin issue reported against Eclipse: #398657
Scalac crashes when trying to open a Java class, with annotations, compiled by the Eclipse Java compiler.
The Java code is the following:
It depends on
"org.codehaus.jackson" % "jackson-core-asl" % "1.9.4"
, also available here.I attached a zip with the result of the compilation with the Eclipse Java compiler.
A Scala test class:
The error:
If the Java class is compiled with javac, scalac is working fine.
The text was updated successfully, but these errors were encountered: