Exception.new does not take more than 1 argument
------------------------------------------------
Key: JRUBY-1090
URL: http://jira.codehaus.org/browse/JRUBY-1090
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.0.0RC3
Environment: OS X 10.4.9, Java 1.5, 2007-06-02 rev 3812
Reporter: Daniel Berger
Priority: Minor
Exception.new only takes 1 (optional) argument.
{noformat}
irb(main):001:0> Exception.new('hello', 'world')
ArgumentError: wrong number of arguments (2 for 1)
...
{noformat}
JRuby appears to take an unlimited number of arguments (but uses the first one
for the message):
{noformat}
irb(main):001:0> Exception.new('hello', 'world').message
=> "hello"
{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