-
-
Notifications
You must be signed in to change notification settings - Fork 925
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
System.setProperty("org.jruby.embed.compat.version", "RUBY1_8") does not work #1365
Comments
I ran into this now too using 1.7.20.1. (2 years after the problem reported first). The only workaround I found is:
ScriptingContainer dummySingletonJruby = new ScriptingContainer(LocalContextScope.SINGLETON);
dummySingletonJruby.setCompatVersion(CompatVersion.RUBY1_8);
dummySingletonJruby.getProvider().getRuntime();
I'd like this to be fixed for 1.7.x (as well as 9.x) |
this seems as a left-over from the time JRuby switched to 1.9 mode being the default (since 1.7.x) ... should be easy to fix. also please be aware that COMPAT_VERSION currently makes no sense in 9K (its 2_2 only) |
with (JSR223) scripting-container (fixes jruby#1365)
should be ready for 1.7.22 ... you can try the jruby-1_7 branch |
Great, thank you! Although in the meantime I migrated to using jruby.embed directly - I will try it soon. |
BTW- I know this awfully off-topic - but is there any new mailing list up&running yet (codehaus replacement) Thanks |
http://jruby.org/community is updated with the new mailing list already (jruby@ruby-lang.org) |
Verified with jruby 1.7.9, the JSR223 does not set the compat version properly.
This is what I have tried:
When I run it, it shows RUBY_VERSION is still 1.9
org.jruby.embed.util.SystemPropertyCatcher (line 170):
Thank you.
The text was updated successfully, but these errors were encountered: