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
backend crash if a file references both None and None$.MODULE$ #8105
Comments
Imported From: https://issues.scala-lang.org/browse/SI-8105?orig=1
|
@retronym said (edited on Jan 2, 2014 8:25:50 PM UTC): |
@magarciaEPFL said: |
@retronym said (edited on Jan 3, 2014 6:54:50 AM UTC): |
David Bouyssie (crumbpicker) said: However I don't understand why I have to set this flag. Is there an other workaround ? |
@retronym said (edited on Jan 8, 2014 5:52:38 PM UTC): In 2.11, we've removed the the FJBG backend, which means that is imperative that we understand the problem you've reported and make sure it is fixed before the release of 2.11.0. Can you share the code (privately, if needed, I'm at jason.zaugg@typesafe.com) that triggers the bug? |
@retronym said: |
David Bouyssie (crumbpicker) said: My code base on this project is big. So I think I'll try to create a smaller project with the pieces of code at the origin of this issue. |
David Bouyssie (crumbpicker) said: [INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ Proline-DAL --- |
David Bouyssie (crumbpicker) said: Targeting the 1.5 JVM may enabled the issue #7002. So I think I'm stuck... |
David Bouyssie (crumbpicker) said: |
@retronym said: class Crash {
None; None$.MODULE$
} This crashes under GenASM in 2.10.x and 2.11.x. It's not a high-priority to fix. I sort of wish that the second form didn't typecheck; should it? |
@SethTisue said: |
I'm trying to migrate from scala 2.9.3 to 2.10.3 and some of my test classes make the scala compiler crash.
I've got aConstantType(value = Constant(IllegalArgumentException)) with the following message (see the full stack trace and the maven dependencies in the attached file):
how can getCommonSuperclass() do its job if different class symbols get the same bytecode-level internal name: scala/None$
at scala.tools.nsc.backend.jvm.GenASM$JBuilder.javaName(GenASM.scala:547)
The text was updated successfully, but these errors were encountered: