Alex Khesin created JRUBY-6318: ---------------------------------- Summary: Tempfile#open does not return the value of the block given to it Key: JRUBY-6318 URL: https://jira.codehaus.org/browse/JRUBY-6318 Project: JRuby Issue Type: Bug Components: Standard Library Affects Versions: JRuby 1.6.5, JRuby 1.7 Reporter: Alex Khesin Assignee: Thomas E Enebo
Tempfile#open's behavior has changed from 1.8 to 1.9, but that change has not been reflected in JRuby 1.9 mode. When given a block, it used to return nil in 1.8, but in 1.9 it is supposed to return the value of the block. JRuby in 1.9 mode continues to return nil. in MRI ruby I get: $ irb 1.9.3p0 :001 > require 'tempfile' 1.9.3p0 :006 > Tempfile.open('foo') { |tmp| tmp.path } => "/tmp/foo20120105-20998-z3gawt" In JRuby, however: $ JRUBY_OPTS=--1.9 irb jruby-1.7.0.dev :001 > require 'tempfile' jruby-1.7.0.dev :002 > Tempfile.open('foo') { |tmp| tmp.path } => nil -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email