'attr' implementation is incompatible with MRI 1.9.1 behavior
-------------------------------------------------------------
Key: JRUBY-3375
URL: http://jira.codehaus.org/browse/JRUBY-3375
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.2
Environment: Ubuntu Linux 8.04, 32-bit x86
Reporter: Hongli Lai
Assignee: Thomas E Enebo
Priority: Blocker
Fix For: JRuby 1.2
Attachments: jruby-attr-1.9-compatibility.diff
MRI 1.8's Module#attr method has the following signature:
Module#attr(symbol_name, writable = false)
In MRI 1.9.1, this has been changed to:
Module#attr(symbol_name, ...)
1.9.1 allows one to define multiple attributes with #attr, all writable:
attr :foo, :bar, :baz
JRuby still implements the old 1.8 behavior, even when in 1.9 mode. This
prevents irb from starting.
The attached patch fixes this problem.
--
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