JRuby

Add public RubyInstanceConfig#setCompatVersion

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Minor 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 :
    0

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; }

Activity

Hide
Thomas E Enebo added a comment -

Fixed in commit 8617.

Show
Thomas E Enebo added a comment - Fixed in commit 8617.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: