Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
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 :
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.
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