History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: JRUBY-1023
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Charles Oliver Nutter
Reporter: Daniel Berger
Votes: 0
Watchers: 3
Operations

If you were logged in you would be able to see more operations.
JRuby

File.new does not support 3rd form (file descriptors)

Created: 29/May/07 07:26 PM   Updated: 22/Dec/07 06:28 AM
Component/s: Core Classes/Modules
Affects Version/s: JRuby 1.0.0RC2
Fix Version/s: JRuby 1.1b1, JRuby 1.0.2

Time Tracking:
Not Specified

File Attachments: 1. Text File fd.jruby-1_0.patch (1 kb)
2. Text File fd.patch (1 kb)

Environment: OS X 10.4.9, Java 1.5, JRuby rev 3672


 Description  « Hide
This is valid in MRI:
fh = File.new(STDOUT.fileno, 'r')

Currently JRuby raises a TypeError, expecting a String only.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Charles Oliver Nutter - 23/Oct/07 02:02 PM
Along with other file descriptor stuff, if this is possible we should fix it.

Riley Lynch - 29/Oct/07 09:24 AM
Patches for trunk and jruby-1_0 branch, including test

Charles Oliver Nutter - 29/Oct/07 03:11 PM
Patch looks good, applied to trunk and 1.0 branch. Thanks!