JRuby (please use github issues at http://bugs.jruby.org)
  1. JRuby (please use github issues at http://bugs.jruby.org)
  2. JRUBY-6648

Opening a file with integer flags mixed with hash options raises an exception

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: JRuby 1.7.0.pre1
    • Fix Version/s: JRuby 1.7.0.pre1
    • Component/s: None
    • Labels:
      None
    • Environment:
      jruby 1.7.0.dev (ruby-1.9.3-p203) (2012-04-27 69c9732) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_31) [darwin-x86_64-java]
    • Testcase included:
      yes
    • Number of attachments :
      1

      Description

      Opening a file with IO flags and an encoding option raises a TypeError.

      I've attached a test case that passes on MRI 1.9.3 but fails on JRuby master.

      1. test.rb
        0.3 kB
        Aaron Patterson

        Activity

        Hide
        Thomas E Enebo added a comment -

        Fixed on master 56a5167. I am also this will get coverage in main MRI tests.

        Show
        Thomas E Enebo added a comment - Fixed on master 56a5167. I am also this will get coverage in main MRI tests.

          People

          • Assignee:
            Thomas E Enebo
            Reporter:
            Aaron Patterson
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: