Issue Type: Bug Bug
Affects Versions: JRuby 1.6.7
Assignee: Unassigned
Components: Core Classes/Modules
Created: 12/Jun/12 4:01 PM
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
Environment: Mac OS X Lion
Project: JRuby
Priority: Minor Minor
Reporter: Kelvin Liu
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
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

Reply via email to