[GH-1726] - File.read should raise an Errno::ENOENT when the file is an empty String #1731

Merged
merged 1 commit into from Jun 14, 2014

Projects

None yet

2 participants

@lucasallan
JRuby Team member

Fixing #1726

@lucasallan lucasallan [GH-1726] - File.read should raise an Errno::ENOENT when the file is …
…an empty String.

File.read it's currently raising EncodingUtils.java:597:in `encAscget':
java.lang.ArrayIndexOutOfBoundsException: 0

But it should raise an Errno::ENOENT to keep the MRI compatibility.
e51aaad
@enebo enebo merged commit d08e10f into jruby:jruby-1_7 Jun 14, 2014

1 check failed

Details continuous-integration/travis-ci The Travis CI build failed
@enebo enebo added this to the JRuby 1.7.13 milestone Jun 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment