From 7f1e2bf12a3d9aa5419d66a95b97e1b2dddd1683 Mon Sep 17 00:00:00 2001 From: Chad Wilson <29788154+chadlwilson@users.noreply.github.com> Date: Wed, 22 Apr 2026 01:29:34 +0800 Subject: [PATCH 1/2] fix: remove use of deprecated JRuby method --- CHANGELOG.md | 1 + ext/WarMain.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ba3a65c6..99fb00ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - #591: chore: clean up obsolete & deprecated code from 2.0.x and old Bundler versions - #592: chore: relax rubyzip requirement to allow rubyzip 2.x - #593: chore: relax jruby-rack requirement to allow compatibility with upcoming 1.3.x +- #624: chore: remove use of deprecated JRuby methods removed in JRuby 10.1 ## 2.1.0 diff --git a/ext/WarMain.java b/ext/WarMain.java index 450c4c9c..5a765f3c 100644 --- a/ext/WarMain.java +++ b/ext/WarMain.java @@ -259,7 +259,7 @@ protected int launchJRuby(final URL[] jars) throws Exception { invokeMethod(rubyInstanceConfig, "processArguments", (Object) arguments); - Object runtime = invokeMethod(scriptingContainer, "getRuntime"); + Object runtime = invokeMethod(provider, "getRuntime"); debug("loading resource: " + executablePath); Object executableInput = From 9e2686b5232ed0232f78b4552056c71dc0efb878 Mon Sep 17 00:00:00 2001 From: Chad Wilson <29788154+chadlwilson@users.noreply.github.com> Date: Wed, 22 Apr 2026 01:46:05 +0800 Subject: [PATCH 2/2] build: fix CI to use specific JRuby 10 version --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8f60b28d..1e89a737 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,11 +17,11 @@ jobs: strategy: matrix: java-version: [8, 21, 25] - ruby-version: [jruby-9.4, jruby-10] + ruby-version: [jruby-9.4, jruby-10.0] task: ['', integration] exclude: # JRuby 10 requires Java 21 minimum - - ruby-version: jruby-10 + - ruby-version: jruby-10.0 java-version: 8 fail-fast: false