Skip to content

Update test suites with JRuby 10 compatibility#84

Merged
Sharpie merged 3 commits into
OpenVoxProject:mainfrom
Sharpie:jruby-10-compat
Jul 7, 2026
Merged

Update test suites with JRuby 10 compatibility#84
Sharpie merged 3 commits into
OpenVoxProject:mainfrom
Sharpie:jruby-10-compat

Conversation

@Sharpie

@Sharpie Sharpie commented Jul 7, 2026

Copy link
Copy Markdown
Member

Short description

This changeset updates the test suite to be compatible with both JRuby 9 and 10:

  • Java 17 is dropped from the test matrix as Java 21 or newer is a hard requirement for JRuby 10.
  • Imports of org.jruby.CompatVersion were removed as that class no longer exists in JRuby 10. These were all dead code as the CompatVersion class was never utilized.
  • A test asserting jruby-core/jruby-version-info returns data was made generic instead of version-specific.

Checklist

I have:

Sharpie added 3 commits July 7, 2026 08:34
JRuby 10 requires Java 21 or newer. Attempting to run tests under Java 17
just results in a pile of type errors from the Java compiler.

Signed-off-by: Charlie Sharpsteen <charlie@overlookinfratech.com>
The `org.jruby.CompatVersion` class was used by JRuby 1.x to switch
the Ruby language version targeted by its interpreter between 1.8.x,
1.9.x, and 2.x. This functionality was reduced to a deprecated no-op
in JRuby 9.0 and finally removed in JRuby 10.0.

This commit removes all imports of `org.jruby.CompatVersion` from
`jruby-utils` code as they cause tests to fail under JRuby 10.
None of the imports were actually used, they were all dead code.

Signed-off-by: Charlie Sharpsteen <charlie@overlookinfratech.com>
This commit updates one of the core unit tests to stop looking for a
specific JRuby version and to instead accept any version string that
starts with "jruby". This allows the test suite to pass on both
JRuby 9.4 and JRuby 10, and keeps things open for future versions.

Signed-off-by: Charlie Sharpsteen <charlie@overlookinfratech.com>
@Sharpie Sharpie enabled auto-merge July 7, 2026 14:13
@Sharpie Sharpie merged commit 3f43d9d into OpenVoxProject:main Jul 7, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants