Methods do not always have the right line number in the AST
-----------------------------------------------------------
Key: JRUBY-1493
URL: http://jira.codehaus.org/browse/JRUBY-1493
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.1
Reporter: Peter Brant
Assignee: Thomas E Enebo
Test output from test_trace_func.rb. sample_method is on line 49, but it's
reported as being on line 50.
(I noticed this when working on method breakpoints in the debugger too. I'll
try to put together a simpler test case.)
{noformat}
2) Failure:
test_method_trace(TestTraceFunc) [test/test_trace_func.rb:56]:
<[" line test/test_trace_func.rb:60 test_method_trace TestTraceFunc",
" call test/test_trace_func.rb:49 sample_method TestTraceFunc",
" line test/test_trace_func.rb:50 sample_method TestTraceFunc",
" c-call test/test_trace_func.rb:50 + Fixnum",
" c-return test/test_trace_func.rb:50 + Fixnum",
" return test/test_trace_func.rb:51 sample_method TestTraceFunc",
" line test/test_trace_func.rb:62 test_method_trace TestTraceFunc",
" c-call test/test_trace_func.rb:62 set_trace_func Kernel"]>
expected but was
<[" line test/test_trace_func.rb:60 test_method_trace TestTraceFunc",
" call test/test_trace_func.rb:50 sample_method TestTraceFunc",
" line test/test_trace_func.rb:50 sample_method TestTraceFunc",
" c-call test/test_trace_func.rb:50 + Fixnum",
" c-return test/test_trace_func.rb:50 + Fixnum",
" return test/test_trace_func.rb:56 sample_method TestTraceFunc",
" line test/test_trace_func.rb:62 test_method_trace TestTraceFunc",
" c-call test/test_trace_func.rb:62 set_trace_func Kernel"]>.
{noformat}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email