Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.6.7
-
Fix Version/s: JRuby 1.7.0.pre2
-
Component/s: Core Classes/Modules
-
Labels:None
-
Environment:Mac OS X Lion
-
Number of attachments :
Description
class WorkerGroup < ThreadGroup def initialize(a,b,c) @args=[a,b,c] end end WorkerGroup.new(1,2,3) # => raises ArgumentError WorkerGroup.method(:new).arity # => 0 (should be -1)
Workaround:
# redefine new def self.new(*args) tg = super() tg.send(:initialize, *args) tg end
Oh, interesting. I'll have a look.