Skip to content

Separate compilation of traits broken when using -optimised #1995

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

Closed
scabug opened this issue May 18, 2009 · 2 comments
Closed

Separate compilation of traits broken when using -optimised #1995

scabug opened this issue May 18, 2009 · 2 comments
Assignees

Comments

@scabug
Copy link

scabug commented May 18, 2009

Separate compilation of traits is broken when implementation classes are loaded by the front end. Currently that happens only when -optimised is on. The result is a broken constructor signature in the trait initializer.

$$ bscalac -d build/optimised/classes/compiler/ src/compiler/scala/tools/nsc/symtab/Symbols.scala -optimise
$$ oscalac -help
Exception in thread "main" java.lang.NoSuchMethodError: scala.tools.nsc.symtab.Symbols$$class.$$init$$(Lscala/tools/nsc/symtab/SymbolTable;)V
	at scala.tools.nsc.symtab.SymbolTable.<init>(SymbolTable.scala:12)
	at scala.tools.nsc.Global.<init>(Global.scala:35)
	at scala.tools.nsc.Main$$compiler$$3$$.<init>(Main.scala:57)
	at scala.tools.nsc.Main$$.compiler$$2(Main.scala:57)
	at scala.tools.nsc.Main$$.process(Main.scala:64)
	at scala.tools.nsc.Main$$.main(Main.scala:87)

(bscalac and oscalac are aliases for build/quick/scalac and build/optimised/bin/scalac)

@scabug
Copy link
Author

scabug commented May 18, 2009

Imported From: https://issues.scala-lang.org/browse/SI-1995?orig=1
Reporter: @dragos

@scabug
Copy link
Author

scabug commented Sep 4, 2009

@dragos said:
Fixed in r18643.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants