class WorkerGroup < ThreadGroup
WorkerGroup.new(1,2,3) # => raises ArgumentError
WorkerGroup.method(:new).arity # => 0 (should be -1)
# redefine new
tg = super()
Oh, interesting. I'll have a look.
Author: Charles Oliver Nutter <email@example.com>
Date: Fri Jun 29 10:21:49 2012 -0500
Can't instantiate ThreadGroup subclass with arguments
We had defined 'new' on ThreadGroup, when what we needed was an
ObjectAllocator for the normal 'new' logic to work. With that fix,
subclass initialize methods work fine.