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

@lucasallan
Copy link
Member

@lucasallan lucasallan commented Jun 8, 2014

Fixing #1726

…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
[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
1 check failed
@lucasallan
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
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants