__LINE__ value is incorrect after a "here document" type string
---------------------------------------------------------------
Key: JRUBY-4576
URL: http://jira.codehaus.org/browse/JRUBY-4576
Project: JRuby
Issue Type: Bug
Components: Interpreter
Affects Versions: JRuby 1.4
Environment: Windows XP
Reporter: Darrick Wiebe
Priority: Minor
This bug breaks backtraces for and debugging of eval blocks when the file and
line are passed as arguments, which is a common use case:
eval <<EOS, __FILE__, __LINE__
1 + 1
EOS
Here is a failing test:
def test_line_number_after_here_document
line_num_before, str, line_num_after = __LINE__, <<-EOS, __LINE__
(arbitrary string...)
EOS
assert_equal line_num_before, line_num_after
end
--
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