Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.2
-
Fix Version/s: JRuby 1.2
-
Component/s: None
-
Labels:None
-
Environment:Ubuntu Linux 8.04, 32-bit x86
-
Patch Submitted:Yes
Description
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.
Committed in r9013. Thanks for the patch!