The following code seems to work in MRI, but not in jruby:
File.open("/tmp/foo", “w”) do |f|
File.open("/tmp/foo", “r”) do |f|
% ruby iotest.rb
% jruby iotest.rb
load': End of file reached (EOFError) from iotest.rb:10 from iotest.rb:7:inopen’
Changing the test to use the loop “while not f.eof” causes jruby to fail
before the first iteration.
I have tried this with jruby 1.0.3 and 1.1.1.
To unsubscribe from this list, please visit: