Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.0.0RC2
-
Fix Version/s: JRuby 1.1.4
-
Component/s: Core Classes/Modules
-
Labels:None
-
Environment:OS X 10.4.9, Java 1.5, 2007-05-31 rev 3672
-
Number of attachments :
Description
Calling IO.new with an invalid file descriptor should raise a SystemCallError. Currently JRuby raises a NativeException.
IO.new(999) # => Should raise SystemCallError
Attached patch fixes the NPE.
It gives IOError instead of the right subclass of SystemCallError though.