Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.1.6
-
Fix Version/s: JRuby 1.2
-
Component/s: Core Classes/Modules
-
Labels:None
-
Environment:JRuby 1.1.6, Java 1.5, Solaris 10
Description
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:
irb(main):003:0> Etc.getpwuid(Etc.getlogin)
TypeError: can't convert String into Integer
from (irb):3:in `getpwuid'
from (irb):3
JRuby:
irb(main):003:0> Etc.getpwuid(Etc.getlogin) => nil
The attached patch fixes this bug, along with the other Etc specs.
Enjoy