JRuby

IO.open not defined

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: JRuby 1.0.0RC2
  • Fix Version/s: JRuby 1.0.2, JRuby 1.1b1
  • Component/s: Core Classes/Modules
  • Labels:
    None
  • Environment:
    OS X 10.4.9, Java 1.5, JRuby 2007-05-31 rev 3672
  • Number of attachments :
    2

Description

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.

  1. io.jruby-1_0.patch
    30/Oct/07 1:33 PM
    2 kB
    Riley Lynch
  2. io.patch
    30/Oct/07 1:33 PM
    2 kB
    Riley Lynch

Activity

Hide
Thomas E Enebo added a comment -

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).

Show
Thomas E Enebo added a comment - 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).
Hide
Charles Oliver Nutter added a comment -

I doubt we'll have time in 1.0.2, but this is an incompatibility we should try to fix.

Show
Charles Oliver Nutter added a comment - I doubt we'll have time in 1.0.2, but this is an incompatibility we should try to fix.
Hide
Charles Oliver Nutter added a comment -

Bumped off 1.0.2.

Show
Charles Oliver Nutter added a comment - Bumped off 1.0.2.
Hide
Riley Lynch added a comment -

Patches for trunk and jruby-1_0, with tests

Show
Riley Lynch added a comment - Patches for trunk and jruby-1_0, with tests
Hide
Charles Oliver Nutter added a comment -

Fixed in 1.0.2 and 1.1b1. Thanks again Riley.

Show
Charles Oliver Nutter added a comment - Fixed in 1.0.2 and 1.1b1. Thanks again Riley.

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: