Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[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

Conversation

Projects
None yet
2 participants
@sh286
Copy link
Member

sh286 commented Jun 8, 2014

Fixing #1726

[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.

enebo added a commit that referenced this pull request Jun 14, 2014

Merge pull request #1731 from lucasallan/gh-1726
[GH-1726] - File.read should raise an Errno::ENOENT when the file is an empty String

@enebo enebo merged commit d08e10f into jruby:jruby-1_7 Jun 14, 2014

1 check failed

continuous-integration/travis-ci The Travis CI build failed
Details

@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
You can’t perform that action at this time.