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

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

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

IO.open not defined

Created: 31/May/07 08:11 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 io.jruby-1_0.patch (2 kb)
2. Text File io.patch (2 kb)

Environment: OS X 10.4.9, Java 1.5, JRuby 2007-05-31 rev 3672


 Description  « Hide
IO.open doesn't appear to be defined. Attempting to call it results in a NoMethodError:
IO.open(2, 'w') # => JRuby raises NoMethodError

Given that File inherits from IO, I'm very curious about this.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Thomas E Enebo - 31/May/07 08:34 PM
Interesting....this is missing. File has an open defined. We probably would have known this had we properly implemented the file descriptor stuff (as you reported in another issue).

Charles Oliver Nutter - 23/Oct/07 01:44 PM
I doubt we'll have time in 1.0.2, but this is an incompatibility we should try to fix.

Charles Oliver Nutter - 30/Oct/07 02:03 AM
Bumped off 1.0.2.

Riley Lynch - 30/Oct/07 01:33 PM
Patches for trunk and jruby-1_0, with tests

Charles Oliver Nutter - 30/Oct/07 05:20 PM
Fixed in 1.0.2 and 1.1b1. Thanks again Riley.