Aladdin - Scala Bugtracking
[#504] project: compiler priority: medium category: bug
submitter assigned to status date submitted
Sean _ _ 2005-11-29 19:12:21.0
subject Line numbers wrong for constructor instructions
code
<pre>
object Test extends Application { 
  if (1 == 0) throw new Error();
  bar;
  def bar = foo; 
  def foo = if (true) 
    throw new Error(); 
}
</pre>
what happened
The "bar" call on line 3 is indicated as being on line 1 in the stack trace that results from the throw on line \
6.  The trace is correct for the throw on line 6 and the call to foo on line 4. This problem only exists in the \
body of a class/object.
what expected Call to bar should appear on line 3 in stack trace, not line 1.
[back to overview]
Changes of this bug report