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
Broken bytecode with "-optimize", "-target:jvm-1.7" #8645
Comments
Imported From: https://issues.scala-lang.org/browse/SI-8645?orig=1 |
@lrytz said (edited on Oct 16, 2014 6:44:53 AM UTC): class C {
def apply(x: Boolean) = new Tuple2(null, {
while (x) { }
null
})
}
object Main {
def main(args: Array[String]): Unit = println(new C())
} gives
the |
@lrytz said: |
@lrytz said: Main idea: transform (when there are back jumps)
to
|
@gourlaysama said: |
@lrytz said: |
@retronym said: https://wiki.openjdk.java.net/display/general/JBS+Overview Issues mentioning "Scala" (which includes some big feature tickets like a REPL and specialization) https://bugs.openjdk.java.net/issues/?jql=text%20~%20scala%20ORDER%20BY%20updated%20DESC |
@paulp said: |
@som-snytt said: |
Compile this code with both keys "-optimise" and "-target:jvm-1.7":
Then run it and you get this error message:
Scala version is 2.11.1.
java -version is:
java version "1.7.0_55"
OpenJDK Runtime Environment (IcedTea 2.4.7) (ArchLinux build 7.u55_2.4.7-1-x86_64)
OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode)
The text was updated successfully, but these errors were encountered: