Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.1.6
-
Fix Version/s: JRuby 1.2
-
Component/s: Java Integration
-
Labels:None
-
Environment:Any
-
Patch Submitted:Yes
-
Number of attachments :
Description
There is no way to publicly set the compatVersion instance variable from within Java code. Instead, the only way to do so is through the "--compat" command line argument or the jruby.compat.version property setting.
Adding a RubyInstanceConfig#setCompatVersion method would be nice. Here's the code:
public void setCompatVersion(CompatVersion newCompatVersion) { compatVersion = newCompatVersion; }
Fixed in commit 8617.