meta method returns a wrong value
---------------------------------
Key: JRUBY-3031
URL: http://jira.codehaus.org/browse/JRUBY-3031
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.1.4
Environment: Ubuntu Linux 2.6.24, Sun JDK 1.6, Jruby-1.1.4 and
CRuby-1.8.6
Reporter: Mikael Lammentausta
Assignee: Thomas E Enebo
Priority: Minor
The sample below returns different values on ruby and jruby:
# $ ruby test.rb
#test_meta
# $ jruby test.rb
#meta
---
# test.rb
def this_method
caller[0][/`([^']*)'/, 1]
end
def meta
puts this_method
end
alias :test_meta :meta
test_meta
--
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