Skip to content

Commit d50e47f

Browse files
NihalJainVillő Szűcs
authored andcommitted
CDPD-73214: HBASE-28249 Bump jruby to 9.3.13.0 and related joni and jcodings to 2.2.1 and 1.0.58 respectively (apache#5568)
- Also fix "NoMethodError: undefined method runtime for JRuby:Module" caused due to bump Signed-off-by: Rajeshbabu Chintaguntla <[email protected]> (cherry picked from commit 99654a6) Change-Id: I55d1246235396e0125aef9be762abc11a77c29a2
1 parent 1934999 commit d50e47f

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@
584584
<wx.rs.api.version>2.1.1</wx.rs.api.version>
585585
<glassfish.jsp.version>2.3.2</glassfish.jsp.version>
586586
<glassfish.el.version>3.0.1-b08</glassfish.el.version>
587-
<jruby.version>9.3.4.0</jruby.version>
587+
<jruby.version>9.3.13.0</jruby.version>
588588
<junit.version>4.13.2</junit.version>
589589
<hamcrest.version>1.3</hamcrest.version>
590590
<opentelemetry.version>0.12.0</opentelemetry.version>
@@ -604,8 +604,8 @@
604604
<jamon-runtime.version>2.4.1</jamon-runtime.version>
605605
<jettison.version>1.5.4</jettison.version>
606606
<!--Make sure these joni/jcodings are compatible with the versions used by jruby-->
607-
<joni.version>2.1.42</joni.version>
608-
<jcodings.version>1.0.56</jcodings.version>
607+
<joni.version>2.2.1</joni.version>
608+
<jcodings.version>1.0.58</jcodings.version>
609609
<spy.version>2.12.2</spy.version>
610610
<bouncycastle.version>1.76</bouncycastle.version>
611611
<skyscreamer.version>1.5.1</skyscreamer.version>
@@ -4536,4 +4536,4 @@
45364536
</properties>
45374537
</profile>
45384538
</profiles>
4539-
</project>
4539+
</project>

0 commit comments

Comments
 (0)