wrong # args when calling super without args in subclass of
Enumerable::Enumerator
----------------------------------------------------------------------------------
Key: JRUBY-3492
URL: http://jira.codehaus.org/browse/JRUBY-3492
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.2
Reporter: Matthew King
Assignee: Thomas E Enebo
Priority: Minor
{noformat}
class A < Enumerable::Enumerator
def initialize(x, y, *z)
super
end
end
a = A.new("foo", :each_byte)
{noformat}
The above code works in 1.1.6. Produces the following in 1.2 RC1 and RC2
{noformat}
ArgumentError: wrong # of arguments(2 for 4)
from (irb):4:in `initialize'
from (irb):8
{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