Skip to content

Commit 6af1d2e

Browse files
committed
HBASE-28249 Bump jruby to 9.3.13.0 and related joni and jcodings to 2.2.1 and 1.0.58 respectively (#5568)
- Also fix "NoMethodError: undefined method runtime for JRuby:Module" caused due to bump Signed-off-by: Rajeshbabu Chintaguntla <[email protected]>
1 parent de15162 commit 6af1d2e

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

hbase-shell/src/main/ruby/jar-bootstrap.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@
3737
# hbase hacking.
3838
include Java
3939

40+
# Required to access JRuby-specific internal features, such as `JRuby.runtime`
41+
# Loading 'java' was automatically loading 'jruby' until JRuby 9.2.
42+
# But, it has changed since JRuby 9.3. JRuby 9.3+ needs loading 'jruby' explicitly.
43+
#
44+
# See also: https://github.com/jruby/jruby/issues/7221#issuecomment-1133646241
45+
#
46+
require 'jruby'
47+
4048
# Some goodies for hirb. Should these be left up to the user's discretion?
4149
if $stdin.tty?
4250
require 'irb/completion'

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@
592592
<wx.rs.api.version>2.1.1</wx.rs.api.version>
593593
<glassfish.jsp.version>2.3.2</glassfish.jsp.version>
594594
<glassfish.el.version>3.0.1-b08</glassfish.el.version>
595-
<jruby.version>9.3.9.0</jruby.version>
595+
<jruby.version>9.3.13.0</jruby.version>
596596
<junit.version>4.13.2</junit.version>
597597
<hamcrest.version>1.3</hamcrest.version>
598598
<opentelemetry.version>1.15.0</opentelemetry.version>
@@ -613,8 +613,8 @@
613613
<jamon-runtime.version>2.4.1</jamon-runtime.version>
614614
<jettison.version>1.5.4</jettison.version>
615615
<!--Make sure these joni/jcodings are compatible with the versions used by jruby-->
616-
<joni.version>2.1.43</joni.version>
617-
<jcodings.version>1.0.57</jcodings.version>
616+
<joni.version>2.2.1</joni.version>
617+
<jcodings.version>1.0.58</jcodings.version>
618618
<spy.version>2.12.2</spy.version>
619619
<bouncycastle.version>1.76</bouncycastle.version>
620620
<skyscreamer.version>1.5.1</skyscreamer.version>

0 commit comments

Comments
 (0)