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

IO.readlines with zero argument causes Java error #2851

Closed
djberg96 opened this issue Apr 18, 2015 · 3 comments
Closed

IO.readlines with zero argument causes Java error #2851

djberg96 opened this issue Apr 18, 2015 · 3 comments

Comments

@djberg96
Copy link
Contributor

jruby 9.0.0.0.pre1
Windows 7

It looks like various IO methods in Ruby 2.2 support numeric limits instead of, or in addition to, separators. This one is making JRuby blow up:

# MRI
IO.readlines('test.txt', 0) # => ArgumentError: invalid limit: 0 for readlines

# JRuby
IO.readlines('test.txt', 0) # => java.lang.OutOfMemoryError: Java heap space
@djberg96
Copy link
Contributor Author

Still happening with 9.0.1.0.

@djberg96
Copy link
Contributor Author

@headius @enebo Still happening as of 9.1.12.

@djberg96
Copy link
Contributor Author

Stale, closing.

@enebo enebo added this to the Invalid or Duplicate milestone Apr 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants