Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: JRuby 1.6.7, JRuby 1.7.0.pre1
    • Fix Version/s: JRuby 1.7.0.pre1
    • Component/s: Encoding
    • Labels:
      None
    • Patch Submitted:
      Yes
    • Number of attachments :
      1

      Description

      In MRI 1.9, Tempfile takes as a parameter to the constructor in order to specify encodings. JRuby raises an exception when the hash parameter is used. I've attached a patch with a test to demonstrate the bug.

      1. tf.patch
        0.5 kB
        Aaron Patterson

        Activity

        Hide
        Charles Oliver Nutter added a comment -

        Fixed on master@428429e. I pushed your test into jruby/rubyspec since it's pretty generally applicable.

        commit 7c49b1db3d356aa131385b3c7c992cb84903a154
        Author: Charles Oliver Nutter <headius@headius.com>
        Date:   Mon Apr 30 00:55:24 2012 -0500
        
            Fix JRUBY-6630: Tempfile doesn't take a hash in the constructor
        
        Show
        Charles Oliver Nutter added a comment - Fixed on master@428429e. I pushed your test into jruby/rubyspec since it's pretty generally applicable. commit 7c49b1db3d356aa131385b3c7c992cb84903a154 Author: Charles Oliver Nutter <headius@headius.com> Date: Mon Apr 30 00:55:24 2012 -0500 Fix JRUBY-6630: Tempfile doesn't take a hash in the constructor

          People

          • Assignee:
            Charles Oliver Nutter
            Reporter:
            Aaron Patterson
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: