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
Get "Duplicate method name&signature" on recompile only #5938
Comments
Imported From: https://issues.scala-lang.org/browse/SI-5938?orig=1
|
@jsuereth said: |
@adriaanm said: |
@adriaanm said: |
@gkossakowski said: |
Dustin Carlino (dabreegster) said: |
hkoehler said: |
Ryan Hendrickson (ryan.hendrickson_bwater) said: |
@JamesIry said: |
@adriaanm said: |
@gkossakowski said: |
@retronym said: |
@retronym said (edited on Nov 6, 2014 8:31:12 AM UTC): |
@retronym said: |
The attached program (bug.scala) compiles and runs correctly when initially built. However, if I trivially modify the source file via the editor or 'touch' and then recompile, the JVM fails with a "Duplicate method name&signature" exception.
Specifically:
$ fsc -shutdown; fsc -max-idle 0
[Compile server exited]
[...elided...]
Disabling idle timeout on compile server.
$ scala ca.blit.bug.W
$ touch bug.scala
$ fsc bug.scala
$ scala ca.blit.bug.W
Exception in thread "main" java.lang.ClassFormatError: Duplicate method name&signature in class file ca/blit/bug/W
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:14
[...]
Restarting the compile server between builds seems to be sufficient to produce correct output; you don't need to delete the existing class files.
Downgrading to Scala 2.9.1-1 fixed the problem.
The text was updated successfully, but these errors were encountered: