Releases: jruby/jruby
JRuby 9.4.14.0 Released
The JRuby community is pleased to announce the release of JRuby 9.4.14.0.
- Homepage: https://www.jruby.org/
- Download: https://www.jruby.org/download
JRuby 9.4.14.x targets Ruby 3.1 compatibility.
Thank you to our contributors this release, you help keep JRuby moving forward! @matthias-fratz-bsz, @ikaronen-relex, @ylecuyer
Compatibility
- Ruby version is now 3.1.7. (#8966)
Libraries
- strscan is updated to 3.1.5. (#8897)
- cgi is updated to 0.3.7 to resolve CVE-2025-27220 and CVE-2025-27219 (#8954, #8966)
- uri is updated to 0.12.4. (#8966)
- net-smtp is updated to 0.3.1.1. (#8966)
- rss is updated to 0.3.1. (#8966)
- Non-gem stdlib has been updated to Ruby 3.1.7 sources. (#8966)
Build
- jruby-maven-plugins is updated to 3.0.6 to resolve issues with garbled gem poms. (#8898)
- The stdlib build scripts have been modified to work with latest polyglot-ruby. (#8634, #8963)
Usability
- bin/ruby and bin/ruby.bat are now shipped in the distribution, to make installation simpler. (#8875)
29 Issues and PRs resolved for 9.4.14.0
- #8422 ConcurrentLocalContextProvider leaks memory per thread
- #8634 9.4.12.0 unable to build itself
- #8670 Setting system property 'jruby.gem.home' works but outputs a warning
- #8779
Marshal.dump(binding)
behavior differs from CRuby - #8823 Failure in
StringScanner#scan_integer
when running the HexaPDF test suite - #8859
bundle gem
does not fully run - #8866 JRuby 9.4.13.0 introduces
LoadError: no such file to load -- Win32API
via stdlib/net/http on Windows - #8875 Pregenerate bin/ruby and bin/ruby.bat
- #8883 Normalize arch to universal-java-version
- #8884 Require the correct case for this library
- #8885 Coerce the chdir for popen
- #8897 Update strscan to fix number scanning at nonzero offset
- #8898 Update maven plugins to latest
- #8902 Sporadic failure in TestArray#test_insert under indy
- #8904 Always check array insert pos
- #8909 Make Binding unmarshalable
- #8918 Don't set callInfo when target does not use kwargs
- #8919 Update vendored cgi gem
- #8933 Output buffer size calculation for unpack('m') and unpack('u') can overflow for long inputs
- #8936 Fix integer overflow in buffer length calculation for unpack('m') and unpack('u')
- #8954 Secuity: Bump cgi to 0.4.2. CVE-2025-27220 CVE-2025-27219
- #8961 Fix index -1 error while searching for feature path
- #8963 Upgrade polyglot and remove openssl lib hack
- #8966 Update stdlib to 3.1.7
- #8968 Pass multi-elt array key for to_h using yieldArray
- #8969 Fix memory leak in Concurrent/ThreadSafeLocalContextProvider
- #8970 Move jruby.gem.home and jruby.gem.path to Options
- #8973 Pathname::glob behavior changed with 9.4.13.0 and later
- #8980 Additional fixes for scheme-based globbing (9.4)
JRuby 10.0.2.0
The JRuby community is pleased to announce the release of JRuby 10.0.2.0.
- Homepage: https://www.jruby.org/
- Download: https://www.jruby.org/download
JRuby 10.0.2.x targets Ruby 3.4 compatibility.
Thank you to our contributors this release, you help keep JRuby moving forward!
7 Issues and PRs resolved for 10.0.2.0
- #8920 KWargs issue with mustermann gem preventing JRuby 10.0.1.0 upgrade
- #8922 Don't clear callInfo for Ruby methods
- #8929 Update ArgumentError for missing file to match CRuby
- #8930 Run specs repeatedly with forced JIT
- #8943 Make closure to method conversion more conservative
- #8948 SassC - array size too big
- #8950 Fixes #8948. SassC - array size too big
JRuby 10.0.1.0
The JRuby community is pleased to announce the release of JRuby 10.0.1.0.
- Homepage: https://www.jruby.org/
- Download: https://www.jruby.org/download
JRuby 10.0.1.x targets Ruby 3.4 compatibility.
Thank you to our contributors this release, you help keep JRuby moving forward!
Compatibility
Libraries
62 Issues and PRs resolved for 10.0.1.0
- #6781 Remaining Zeitwerk fixes
- #8624 Inconsistent String behavior between MRI and JRuby
- #8690 Using JSR223 ScriptEngine interface has no way to clean up resources
- #8740 JRuby10: BigDecimal("0").to_java => Java::JavaLang::Long
- #8767
it
special block variable hides local variable sometimes - #8769 Fix
sprinf
with explicit zero precision and zero value - #8772 parameterless blocks must check for
it
outside the block in case it exists already - #8776 False positive syntax error on endless method definition on 10.0
- #8777 Something wrong with requires on 10.0 (broken dry-validation gem for example)
- #8778 == and === need to support endless method definitions
- #8780 Fiddle test failing with JRuby 10
- #8781 ffi LONG/ULONG call different value methods
- #8782
Date::Error
withDate.parse
and JRuby 10 - #8783 Failure in ruby/pp CI in JRuby 10
- #8785 Rearrange kwargs logic
- #8787 Frozen string literal warning with FFI and JRuby 10
- #8788
Time.new
nanosecond parsing - #8793 Fix more corner cases of kwargs from MRI test suite
- #8796 Jruby 10.0:
it
is not working in REPL (irb/pry) - #8798 Keyword arguments arity error in drb tests
- #8799
it
broken in irb. Used wrong scope type field in parser. - #8800 Improve docs and some minor warns from IDE dealt with
- #8802 Fixes to improve DRb tests
- #8803 9-digit rational needs to be multiplied by 9 digits
- #8826 Update net-imap from 0.5.4 to 0.5.8
- #8828 Update to net-imap 0.5.8 for security fixes
- #8829 Data fixes and improvements
- #8831 Tweaks to further improve startup speed and memory use
- #8833 Missing splatNode creation
- #8840 Possible bugs found by SAST (Svace)
- #8846 Deadlock occurs between main and Ruby-0-JIT-1 threads
- #8847 Java::JavaLang::ClassCastException: class java.lang.Integer cannot be cast to class java.lang.String
- #8848 Improvements for dynamic string invokedynamic site
- #8850 single value makes kwargs hash. Mark it as such
- #8852 Fixes to improve Zeitwerk support
- #8853 NameError: uninitialized constant MyGem::Foo::Bar when using Zeitwerk
- #8854 Java::JavaLang::NullPointerException: Unable to find org.jruby.RubyTime.initialize(RubyTime.java to read failed line
- #8856 Native (and fast) Time#xmlschema (iso8601)
- #8858 Fix
Time.new
when using (empty) keywords (2 issues) - #8860 Time.new gives unexpected value
- #8861 Using a string that has been mutated seems to result in a variable containing an unexpected value
- #8863 Order-dependent Zeitwerk failures
- #8864 [deps] update joda-time to 2.14.0
- #8865 [deps] update bundler and rubygems to latest
- #8867 Object.const_defined? not respecting namespace check.
- #8868 Update snapshot deploy to use new maven infrastructure
- #8871 Always remove the lock from pool on failure
- #8872 String#encode replace option incorrectly handles value
- #8873 Handle simple transcoding replacement correctly
- #8874 Update to jruby-maven-plugins 3.0.6
- #8877 Time fixes
- #8878 Some specs fixes in ruby/spec/language
- #8880 Time.new with Rational seconds performs invalid rounding to the next second
- #8881 fix #8880. Added a second with Rational
- #8882 Always set chilled strings as sharing bytelist
- #8890 Fix Time.new parsing (time/new_tags.txt)
- #8895 Improvements based on SAST null reference reports
- #8896 Fix an additional dstring indy optimization long bitfield bug
- #8905 Implement ruby2_keywords_hash dumping
- #8907 Symbol table tweaks
- #8908 Update Hash#inspect logic for multibyte keys
- #8912 Don't include Object for pathed constant searches
JRuby 9.4.13.0
The JRuby community is pleased to announce the release of JRuby 9.4.13.0.
- Homepage: https://www.jruby.org/
- Download: https://www.jruby.org/download
JRuby 9.4.13.x targets Ruby 3.1 compatibility.
Thank you to our contributors this release, you help keep JRuby moving forward!
Stability
- Fixed a slow memory leak in subclass management. (#8842, #8844)
- Fixed a potential deadlock during multi-threaded boot and concurrent JIT compilation. (#8845, #8849)
Usability
- Backported JRuby .sh launcher features from JRuby 10, including AppCDS flags for improved startup time. (#8565, #8625, #8626, #8652, #8653, #8656, #8754)
56 Issues and PRs resolved for 9.4.13.0
- #8351 Zlib::GzipReader missing each_char iterator
- #8426 Dir[] vs "../../"
- #8506 Test new version of resolv
- #8526 obj.first caused Java::JavaUtil::NoSuchElementException on an empty Java21 ArrayList
- #8542 Fix Dir.glob ../ and cases
- #8565 JRuby native launcher seems to get confused when both --dev and -Xcompile.mode=JIT are applied
- #8574 Improvements to support json library
- #8577
ArgumentError: unknown keyword
for required keyword argument - #8599 Fixes #8577. kwargs checking: Use bits instead of index
- #8608 add zlib each_char
- #8611 Setting an instance var on a Java object no longer warns
- #8613 Warn when creating a new ivar table on JavaProxy wrapper
- #8623 Installing sassc broke on jruby-head on Windows
- #8625 Add --cache flag to regenerate AppCDS
- #8626 Fix default arguments for generating AppCDS flag
- #8635 Fix
tr!
andreverse!
on ByteList view with non-zero begin index - #8643 Fixes to get stringio tests and specs green
- #8645 Update stringio to 3.1.5
- #8648 Handle errors whe looking for Java executable
- #8652 Use set -u to avoid accessing uninitialized variables
- #8653 Align 9.4 launcher with 10
- #8654 fix glob dir on windows
- #8655 Make some private helpers for glob
- #8656 Additional fixes for jruby.sh
- #8661 Update Unicode to 15.0
- #8663 copy-rename-maven-plugin version
- #8667 Update jcodings to 1.0.62 and joni to 2.2.4
- #8671 fix a regression in KDDI transcoding
- #8681 Update MRI core tests and tag failures
- #8686 rbByteEncode fails to no-op when encodings are the same
- #8687 Handle encoding checks as in strTranscode
- #8688 Tracing
:call
with TracePoint (and --debug flag) makes kwargs unusable - #8691 Implement AutoCloseable on JRubyEngine
- #8692 Save original callers callInfo in tracepoint
- #8696 New restriction warnings on Java 24
- #8715 Fix missing 2 arg for IO#readline
- #8728 Incorrect warning: given block not used
- #8731 [ji] avoid false duplicate method warning
- #8733 Remove this warning to match standard set.rb
- #8754 Backport jruby.sh from JRuby 10
- #8755 Update uri to version 0.12.3 in JRuby 9.4
- #8789 Dir.glob and Dir[] on existing file URL raises error
- #8795 Possible typo in lib/ruby/stdlib/jruby/compiler.rb:61
- #8805 Possible NPE in RubyModule:searchWithCacheMiss() found by SAST
- #8806 Possible NPE in StringSupport:rbStrEnumerateLines() found by SAST
- #8820 Fix recent potential NPE reports
- #8821 Always cache undef along these paths
- #8825 Update net-imap from 0.2.3 to 0.2.5
- #8827 Update to net-imap 0.2.5 for security fixes
- #8830 Splat with multi-line expression improperly expands
- #8834 Missing splatNode creation
- #8842 Metaspace leak in 9.4
- #8844 Use a normal ClassValue for all such cases
- #8845 Fix locking of stable class values for JI proxies
- #8849 Clean up some locking around hierarchy modification
- #8857 Migrate to the new Maven Central publishing system
JRuby 10.0.0.1 Released
The JRuby community is pleased to announce the release of JRuby 10.0.0.1.
- Homepage: https://www.jruby.org/
- Download: https://www.jruby.org/download
We've jumped to Ruby 3.4 compatibility and Java 21 minimum to bring you the best Ruby on JVM experience possible. We are confident this is the most compatible and stable major release we've ever had.
Security
- jruby-openssl has been updated to 0.15.4, which re-enables hostname verification by default. This addresses CVE-2025-46551 and GHSA-72qj-48g4-5xgx.
JRuby 9.4.12.1 Released
The JRuby community is pleased to announce the release of JRuby 9.4.12.1.
- Homepage: https://www.jruby.org/
- Download: https://www.jruby.org/download
JRuby 9.4.12.x targets Ruby 3.1 compatibility.
Security
- jruby-openssl has been updated to 0.15.4, which re-enables hostname verification by default. This addresses CVE-2025-46551 and GHSA-72qj-48g4-5xgx.
JRuby 10.0.0.0 Released
The JRuby community is pleased to announce the release of JRuby 10.0.0.0.
- Homepage: https://www.jruby.org/
- Download: https://www.jruby.org/download
JRuby 10 is finally here! We've jumped to Ruby 3.4 compatibility and Java 21 minimum to bring you the best Ruby on JVM experience possible. We are confident this is the most compatible and stable major release we've ever had.
Our blog post on JRuby 10 provides a high-level overview of the major changes, with some additional details below. We will update the blog post with additional detailed articles over the coming weeks: https://blog.jruby.org/2025/04/jruby-10-part-1-whats-new
As with any "dot zero" release, we are planning a series of quick updates to address any last-minute issues that snuck into the release. Please file bugs for any issues you see while testing JRuby 10.0: https://github.com/jruby/jruby/issues
Contributors
The JRuby core team today includes Charles Oliver Nutter (@headius), Thomas Enebo (@enebo), and Karol Bucek (@kares). Over the past year we have been honored to accept contributions from many other developers, and JRuby 10 would not be as stable or complete without their help:
[@andsel], [@mrnoname1000], [@ahorek], [@evaniainbrooks], [@edipofederle], [@ccutrer], [@danini-the-panini], [@ntkme], [@andrykonchin], [@mohamedhafez], [@jsvd], [@jpcamara], [@mullermp], [@ikaronen-relex], [@jimtng], [@ryannevell], [@eregon], [@moste00], [@sk757a]
Ruby Compatibility
- Ruby compatibility has been updated to Ruby 3.4. We consider this release equivalent to Ruby 3.4.2.
- Most features of Ruby 3.2, 3.3, 3.4 are complete, but some are still in progress. See our checklists based on CRuby's release notes: Ruby 3.2, Ruby 3.3, Ruby 3.4
- Except where a more recent gem was available or a library is unsupported by JRuby, we have included the same standard libraries as Ruby 3.4.
Java 21
After nearly a decade of supporting Java 8, the JRuby team decided it's time for us to move to a more modern version of Java. The new requirement of Java 21 will allow us to take advantage of many features that were impossible to utilize while simultaneously supporting Java 8:
- On-by-default optimization using InvokeDynamic, which has significantly improved since Java 8.
- Support for thousands of Fibers using the lightweight virtual thread support from Project Loom.
- Fast native function calling and native memory management using Project Panama.
- Greatly improved startup time using Application Class Data Store, enabled by default by our launcher executables.
- Easier access to post-Java 21 features like the Ahead-of-time compiler cache in Project Leyden.
Upgrading to JRuby 10
This release marks a big leap forward for JRuby users, and we are standing by to help with your transition from JRuby 9.x or migration from CRuby. Support services are available to help migrate your critical applications. Many existing users trust JRuby Support by Headius Enterprises to keep their applications in peak condition and to prepare for future updates.
Issues and Pull Requests
There are hundreds of closed issues and merged pull requests in this release. Visit the JRuby 10.0.0.0 milestone for the full list.
201 Issues and PRs resolved for 10.0.0.0
- #6094 [Less modes to run JRuby, and one single mode to benchmark JRuby][#6094]
- #6598 [Modularize all the things][#6598]
- #7516 [Improvements to instance variable shaping][#7516]
- #7638 [ Add support for Ruby 3.2 attached_object][#7638]
- #7646 [Add Integer#ceildiv][#7646]
- #7788 [Add support for a rescue trace event][#7788]
- #7871 [Ruby 3.2 - Remove deprecated methods: trust/taint and friends][#7871]
- #7909 [Intermittent failure on duped pipe tests JDK 19+][#7909]
- #7973 [Use gem for tempfile][#7973]
- #8058 [Ruby 3.3 support: Queue#freeze now raises TypeError][#8058]
- #8059 [Ruby 3.3 support: add symbolize_names kwarg to MatchData#named_captures][#8059]
- #8084 [remove JRuby-specific (deprecated) Class#subclasses(arg)][#8084]
- #8143 [Remove versioned methods][#8143]
- #8145 [Refactor external API to ease extension porting][#8145]
- #8152 [New parser][#8152]
- #8153 [Update parser to 3.4][#8153]
- #8154 [Update and run CRuby 3.4 tests][#8154]
- #8159 [Fix last obvious syntax problem (involving nested pattern kwargs going off rails)][#8159]
- #8160 [Proc#{dup,clone} should be like other objs][#8160]
- #8161 [Finalizers also are on cloned/duped objects][#8161]
- #8162 [Finalizers also are on cloned/duped objects][#8162]
- #8163 [tracepoint only runs in thread it was enabled on][#8163]
- #8164 [{,Unbound}Method#{proc,dup} need to be more like other Ruby objects][#8164]
- #8165 [Add MatchData#deconstruct...][#8165]
- #8168 [First stab at Err#typeError in api][#8168]
- #8169 [Update json to eliminate references to "19" methods][#8169]
- #8170 [Implement block_given? call as optimized instruction][#8170]
- #8172 [Optimized method and callee][#8172]
- #8174 [Unify call paths for most framed scopes][#8174]
- #8175 [These may have been hanging due to a block_given? bug][#8175]
- #8176 [Simplify fixnum and string ranges][#8176]
- #8177 [A few frozen string and symbol optimizations][#8177]
- #8180 [Optimizations for dynamic string building][#8180]
- #8181 [Add ability to generically optimize instr during LOP][#8181]
- #8214 [Disable eager constants in JRuby 10][#8214]
- #8223 [Make Exception#detailed_message,full_message pass specs][#8223]
- #8226 [Implement "chilled" Strings][#8226]
- #8227 [Narrow frame name optimization to method scopes][#8227]
- #8228 [IO#readlines accepts another arg][#8228]
- #8229 [Fix full_message formatting and Throwable impl][#8229]
- #8230 [More frame name fixes][#8230]
- #8233 [Implement Regexp#linear_time?][#8233]
- #8236 [More string interpolation optimizations][#8236]
- #8238 [Implement regexp timeout][#8238]
- #8240 [Fix IO#each_line specs][#8240]
- #8249 [Reduce deopt from print use of $_][#8249]
- #8253 [Optimize literal fixnum and float arrays][#8253]
- #8259 [Improved representation of JRuby for JVM tools][#8259]
- #8260 [Rewrite Marshal.dump logic for efficiency][#8260]
- #8262 [Proc spreading changed in 3.2 with kwrest][#8262]
- #8263 [Implement Coverage::supported?][#8263]
- #8266 [Enable invokedynamic by default][#8266]
- #8267 [Print out paths for syntax errors][#8267]
- #8268 [Unbound method][#8268]
- #8276 [Struct specs][#8276]
- #8277 [Time#new spec fixes.][#8277]
- #8279 [Reduce overhead of ObjectSpace#each_object when disabled][#8279]
- #8291 [Fix remaining copy stream specs][#8291]
- #8293 [Eliminate last consumers of Variable logic][#8293]
- #8295 [3 new Convert API methods][#8295]
- #8297 [Make common method for handling to_r calls in Rational][#8297]
- #8298 [Api changes][#8298]
- #8299 [Linkage errors from java_import are lazy][#8299]
- #8300 [Do initialize classes during java_import][#8300]
- #8301 [Decode ByteList properly for toString][#8301]
- #8304 [Eager initialize java_import'ed classes][#8304]
- #8317 [New asFixnum, asBoolean, asString in Convert][#8317]
- #8330 [Eliminate dynscope for leaf blocks with break/return][#8330]
- #8375 [Revisit chilled strings and pass all specs][#8375]
- #8376 [Get most Enumerator::Product specs passing][#8376]
- #8377 [No backtick in errors][#8377]
- #8378 [Update to latest CRuby 3.4 tests and stdlib][#8378]
- #8390 [Fix foreach with mode: kwarg][#8390]
- #8402 [Hash#inspect: no arrow for symbol keys. add spacing to match C Ruby][#8402]
- #8410 [Permute indy invoke paths to reduce uncached stack][#8410]
- #8414 [Pre-generate specialized object shapes][#8414]
- #8418 [Some small refactoring while looking for example snippet code of new API][#8418]
- #8420 [A bunch of new API calls and new JRubyAPI annotation][#8420]
- #8430 [More dogfooding of new API][#8430]
- #8432 [argumentError API conversions with a lot of runtime to tc replacement][#8432]
- #8437 [context through RubyArray using more API][#8437]
- #8444 [Nearly all newArray is converted to API][#8444]
- #8450 [Enable invokedynamic by default][#8450]
- #8452 [newFixnum,Symbol,Float are unified with asXXX. ][#8452]
- #8454 [more api conversion around Time+][#8454]
- #8459 [API: Nearly all remaining newArgumentError to argumentError][#8459]
- #8460 [more newSymbols made into asSymbol][#8460]
- #8461 [new runtimeError api][#8461]
- #8467 [api: new rangeError, indexError ][#8467]
- #8468 [to_s with TC. new dupString api][#8468]
- #8470 [Inspect wrong object when symbol/string wanted in error][#8470]
- #8471 [more illegal formatting added to printf/format][#8471]
- #8472 [Add new Check#checkEmbeddedNulls to replace StringSupport method][#8472]
- #8473 [Make Time load its Ruby-impl side][#8473]
- #8474 [Create#newEmptyString][#8474]
- #8475 [Create#new{,Small}Hash][#8475]
- #8484 [Various array optimizations][#8484]
- #8485 [Fixes for MRI tests][#8485]
- #8489 [Bind directly to all supported arities of native methods][#8489]
- #8490 [New define API][#8490]
- #8491 [Make hash() always call to hash(ThreadContext) and deprecate][#8491]
- #8492 [...
JRuby 9.4.12.0 Released
The JRuby community is pleased to announce the release of JRuby 9.4.12.0.
- Homepage: https://www.jruby.org/
- Download: https://www.jruby.org/download
JRuby 9.4.12.x targets Ruby 3.1 compatibility.
Thank you to our contributors this release, you help keep JRuby moving forward!
Critical Fixes
- Added additional locking to the new Class#subclasses implementation to fix a concurrent modification error. #8602, #8603
Standard Library
- jar-dependencies upgraded to 0.5.4 to fix an issue parsing Maven output on Java versions 9 and higher. #8606, [#8515]
4 Issues and PRs resolved for 9.4.12.0
JRuby 9.4.11.0 Released
The JRuby community is pleased to announce the release of JRuby 9.4.11.0.
- Homepage: https://www.jruby.org/
- Download: https://www.jruby.org/download
JRuby 9.4.11.x targets Ruby 3.1 compatibility. This release fixes two critical bugs in JRuby 9.4.10.0 and we recommend users skip that version when upgrading.
Thank you to our contributors this release, you help keep JRuby moving forward!
- Karol Bucek @kares
Critical Fixes
- Fixed an issue where Mutex lock acquisition may leave the Mutex locked if an asynchronous Thread interrupt happens at the same time. #8585, #8586
- Fixed a memory leak where singleton classes would leave behind bookkeeping objects that accumulated over time. #8591, #8598
Standard Library
- rubygems been updated to version 3.6.3 to fix an incompatibility with bundler 2.6. #8590, #8596
- bundler has been updated to version 2.6.3. #8596
- jruby-openssl has been updated to 0.15.3. #8458, Release 0.15.3
- jar-dependencies has been updated to 0.5.3 to fix remaining issues loading Maven jars in containerized environments. #8593, #8595
9 Issues and PRs resolved for 9.4.11.0
- #8458 [deps] bump jruby-openssl to 0.15.3
- #8584 Remove dependency on jakarta.annotation-api
- #8585 Thread interrupt can leave Mutex locked in synchronize
- #8586 Unlock if poll triggers an exception
- #8590 Bundler v2.6.x is incomptible with Gem system version included in JRuby 9.4.10.0 by default
- #8591 Eliminate leak of non-concrete subclass references
- #8593 Cannot create a Rails app with JRuby 9.4.10.0, Rails 7.1.5.1
- #8595 Update jar-dependencies to 0.5.3
- #8596 Update rubygems to 3.6.3 and bundler to 2.6.3
- #8598 Memory leak from ActiveRecord_Relation after upgrading from JRuby 9.4.9.0 to 9.4.10.0
JRuby 9.4.10.0 Released
The JRuby community is pleased to announce the release of JRuby 9.4.10.0.
- Homepage: https://www.jruby.org/
- Download: https://www.jruby.org/download
JRuby 9.4.x targets Ruby 3.1 compatibility.
Thank you to our contributors this release, you help keep JRuby moving forward!
- Dani Smith @danini-the-panini
- Karol Bucek @kares
- mrnoname1000 @mrnoname1000
Ruby Compatibility
- Fixed a NegativeArraySizeException crash parsing heredocs. #8355, #8557
- Users can now opt into Ruby 3.3 behavior for NoMethodError and NameError that no longer inspects the target object. This inspect frequently led to memory issues. Specify JRuby flag
-XnameError.inspect.object=false
or JVM propertyjruby.nameError.inspect.object=false
to disable the inspect call. #216, #8384, #8538 - Implemented the missing
Process.argv0
method, used by recent Bundler releases. #8568, #8570
Standard Library
- The jar-dependencies gem, responsible for fetching jar file dependencies of Ruby gems, can now be updated independently of JRuby. #7262, #8488, #8502
- An upcoming release of jar-dependencies, will fix issues sourcing jar dependencies in container deployments (partially fixed previously by an updated ruby-maven-libs gem). #7059, #8366
- The psych gem is updated to version 5.2.3, including a fix for YAML aliases from SnakeYAML-Engine version 2.9. #8352, #8575
- The reline gem is updated to 0.5.12. #8481
Java Integration
- Only JVM classes imported from the same classloader hierarchy as JRuby will be bound to constants in JRuby's package hierarchy. #8156
- Implementing a Java interface no longer leads to constant redefinition warnings. #8349, #8503
- Precompiled Ruby scripts now properly prepare optimized homogeneous case/when statements. Previously they would deserialize incorrectly and garble the branches. #8421, #8424
Performance and Usability
- Additional runtime data structures are eagerly cleared when tearing down a JRuby runtime, aiding GC. #8343, #8566
- The JRuby shell-based launcher script now properly handles JRuby installed in a path with spaces. #8441, #8442
- The
Class#subclasses
method has been optimized to eliminate it as a bottleneck in complex ActiveRecord STI queries. #8457, #8462 - Integer multiplication operations that overflow outside of int64 range have been optimized to eliminate heavy exception raises. #8516, #8523
Issues and PRs resolved for 9.4.10.0
- #7059 Issue of Jar dependency with Jruby-9.3.3.0
- #7262 jar-dependencies cannot be updated out-of-band from jruby
- #8156 JRuby adds Java proxy classes to the Java module even if they are not from JRubyClassLoader
- #8343 Free up memory memory used by JRuby during teardown
- #8349 internal proxy class is stored in Ruby land and prints warning
- #8352 Cyclic references in Set objects raise exception with
YAML#load
- #8355 NegativeArraySizeException while parsing Heredoc in irb in JRuby 9.4.8.0
- #8366 Jruby 9.4.8.0 fails to install psych
- #8384 OutOfMemoryError while constructing a NameError in the context of a large object
- #8398 ruby2_keywords + forwarding to native does not properly check arity
- #8412 Intermittent exceptions with 'Java::JavaLang::NoClassDefFoundError : org/jruby/gen/RubyObject13'
- #8415 Skip extension builds for default gems
- #8416 [Possible bug] Can not start jruby-swing applications since 9.4.9.0 - or rather, the window auto-closes almost instantly
- #8417 Trivial refactoring for match
- #8421 Incorrect case tree selection when comparing long Symbols during compiled Ruby code execution
- #8424 Sort the jump tables based on new values
- #8425 Don't clear the ThreadGroup when Thread terminates
- #8431 jruby/thread_dump.rb seems to be broken
- #8433 Root specialized object classloader at JRuby classloader
- #8436 Pass Enumerable#uniq arguments properly
- #8438 Remove rogue exit(0) that shuts down JVM
- #8441 Spaces in the path cause
bin/jruby
script to build an invalid command string - #8442 jruby.sh: Use array to handle option files
- #8457 Class#subclasses slows down with larger sets
- #8462 Optimize Class#subclasses
- #8466 jirb 9.4.9.0 - reline "cannot convert parameter to native pointer"
- #8469 fix --jdb -sourcepath command
- #8477 Update to jar-dependencies 0.5.0
- #8478 Avoid re-polling while reporting a Thread#raise
- #8479 Thread interrupt requests can overwrite each other
- #8480 Provide concrete-only traversal for Class#subclasses
- #8481 Update reline to 0.5.12
- #8488 Issues bundling psych related to the jar-dependencies bump
- #8502 Avoid loading jar-dependencies to install gem hook
- #8503 [ji] do not expose InterfaceImpl classes in Ruby land
- #8511 Update to jruby-maven-plugins 3.0.4
- #8512 Disable Maven download progress output on CI jobs
- #8515 Update jruby-maven-plugins to 3.0.5
- #8516 Strange performance difference?
- #8523 Revert multiply to use non-intrinsic exactness checks
- #8538 Backport no-inspect NameError logic
- #8557 Fixes #8355: wallpaper crash in heredoc eof error
- #8562 Use same logic as IR for kwarg handling in IO#write
- #8566 Additional teardown to aid GC and release resources
- #8567 Update thread dump hook for modern JRuby
- #8568 Process.argv0 missing
- #8570 Add Process.argv0
- #8571 Update to jcodings 1.0.59
- #8572 Use warning instead of warning when adding attr as module_function
- #8573 Update jcodings to 1.0.61 and joni to 2.2.3
- #8575 Update psych to 5.2.3