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?
to your account
Ruby 2.0 changed Net::HTTPMultipleChoice to the correct Net::HTTPMultipleChoices.
See my comment on this issue
JRuby 1.7.3 with compat.version=2.0 set, does not reflect this change.
The text was updated successfully, but these errors were encountered:
Ok...so we should get this from our copy of stdlib, but since 2.0 mode isn't "officially" supported yet we don't ship that with some forms of release.
How did you get/build/install JRuby?
Can you check if there's a lib/ruby/2.0 in the installed JRuby? I'm guessing we don't include it in our source and binary archives, so ruby-build doesn't have it.
Oh, and you could also try pulling and building JRuby master to see if it works. It occurs to me now that we didn't add 2.0 stdlib (and a bunch of other stuff) until after the JRuby 1.7.3 release.
Ok, I did test this on master myself, and it works ok. I think the only issue is that there's no 2.0 stdlib in the release you're running.
@enebo With more people starting to play with 2.0 mode, perhaps we should consider pulling in 2.0 stdlib for JRuby 1.7.4?
👍 on adding the 2.0 stdlib. We would very much like to start using Ruby 2.0 mode, and I would guess the 2.0 stdlib is required to make it work properly.
We have been reluctant to officially support 2.0 mode since we can't (or don't want to) try to support Module#prepend, which is an official 2.0 feature. But I could be convinced to include stdlib if folks are comfortable with that limitation.
FWIW, 2.0 stdlib will now be part of dist artifacts. It adds size, but @enebo and I figured it's worth it to avoid folks filing issues due to 1.9.3 stdlib in 2.0 mode.
Successfully merging a pull request may close this issue.