[#907] | project: interpreter | priority: high | category: bug | |
---|---|---|---|---|
submitter | assigned to | status | date submitted | |
Martin | Lex | fixed | 2007-01-19 14:42:15.0 | |
subject | Multi-line input on first line crashes the interpreter | |||
code |
/home/odersky/scala> scala This is an interpreter for Scala. Type in expressions to have them evaluated. Type :help for more information. scala> def foo = { | 1+2 | } line0: scala.Int = 0 foo: => scala.Int scala> def bar = { | foo + foo | } bar: => scala.Int scala> def baz = { | bar + bar | } baz: => scala.Int scala> baz |
|||
what happened | java.lang.NoSuchMethodError: line0$object$.foo()I at line1$object$.bar( |
|||
what expected | The first line looks funny. This bug needs to be fixed before a release, I think. | |||
[back to overview] |
Lex edited on 2007-01-19 14:57:23.0 |
Stephane reported this problem informally already. I believe this bug is fixed, but if you see it again please re-open the bug. The problem was that the interpreter now primes itself by doing an evaluation of "0". Erroneously, it used to reuse the "line0" object wrapper. Now it should use "line_neg1" and thus avoid the conflict. |