Etc.getpwuid should raise TypeError if invalid type
---------------------------------------------------

                 Key: JRUBY-3296
                 URL: http://jira.codehaus.org/browse/JRUBY-3296
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.1.6
         Environment: JRuby 1.1.6, Java 1.5, Solaris 10
            Reporter: Daniel Berger


I was supposed to be using Etc.getpwnam, but made a mistake, which revealed 
this bug that made one of my test suites very unhappy:

MRI:
{noformat}
irb(main):003:0> Etc.getpwuid(Etc.getlogin)
TypeError: can't convert String into Integer
        from (irb):3:in `getpwuid'
        from (irb):3
{noformat}

JRuby:
{noformat}
irb(main):003:0> Etc.getpwuid(Etc.getlogin)
=> nil
{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


Reply via email to