Skip to content

Commit

Permalink
Remove deprecate call to jruby 1.9
Browse files Browse the repository at this point in the history
 With the move to JRuby9k which use the 2.3 syntax, this make the
 following constant deprecated

 ```
 config_19.setCompatVersion(CompatVersion.RUBY1_9);
 ```

Fixes elastic#7446
  • Loading branch information
ph committed Jun 14, 2017
1 parent 27755dc commit 60b4e81
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions logstash-core/src/test/java/org/logstash/TestBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ public abstract class TestBase {
public void setUp() throws Exception {
if (setupDone) return;

RubyInstanceConfig config_19 = new RubyInstanceConfig();
config_19.setCompatVersion(CompatVersion.RUBY1_9);
ruby = Ruby.newInstance(config_19);
RubyInstanceConfig config = new RubyInstanceConfig();
ruby = Ruby.newInstance(config);
RubyBigDecimal.createBigDecimal(ruby); // we need to do 'require "bigdecimal"'
JrubyTimestampExtLibrary.createTimestamp(ruby);
setupDone = true;
Expand Down

0 comments on commit 60b4e81

Please sign in to comment.