String#% should raise ArgumentError or print a warning when $DEBUG or $VERBOSE 
are set
--------------------------------------------------------------------------------------

                 Key: JRUBY-1863
                 URL: http://jira.codehaus.org/browse/JRUBY-1863
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.x
         Environment: Latest JRuby 1.1b1
            Reporter: Vladimir Sizikov
         Attachments: string-modulo-too-many-args.patch

Consider the following example:

{noformat}
$DEBUG=true
p ("%s" % [1, 2])
{noformat}

It raises an error on MRI, but silent on JRuby.

Also, setting $VERBOSE instead of $DEBUG should produce the warning. But no 
warnings in JRuby.

This leads to a rubinius spec failure.

The proposed patch fixes the problem and the spec failur.

-- 
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

Reply via email to