Tuesday, November 02 2021
The JRuby community is pleased to announce the release of JRuby 9.2.20.0
- Homepage: http://www.jruby.org/
- Download: http://www.jruby.org/download
JRuby 9.2.x is compatible with Ruby 2.5.x and stays in sync with C Ruby. As always there is a mix of miscellaneous fixes so be sure to read the issue list below. All users are encouraged to upgrade.
Compatiblity
- Argument-count errors will now produce a more accurate backtrace. (#6335, #6768, #6771, #6846, #6928)
Standard Library
- jruby-openssl has been updated to 0.11.0, which includes fixes for expired and replaced certificate verification. (#6871, #6909)
Native Integration
- The built-in FFI library has been updated to match the FFI gem, and can now be upgraded independently of JRuby. (#6732, #6747)
- FFI-based core methods on Windows and Solaris have been modified to delay activating FFI until after RubyGems has loaded any upgrades. (#6751, #6760, #6762)
Java Integration
- Nested jar files (jars packaged within another application jar) should load more quickly with caching improvements. (#6730, #6734, #6740)
- 39 issues fixed for 9.2.20.0
Github Issues resolved for 9.2.20.0
- #5617 – JRuby raises ENOENT instead of EACCES
- #6184 – NullPointerException or “class is not compiled Ruby” error when using a “for” loop
- #6335 – ArgumentError is reported at wrong level for some jitted methods
- #6726 – Open3 with no JAVA_OPTS fails silently
- #6727 – Fixes #6184. NullPointerException/”class is not compiled Ruby” for loop
- #6730 – JarCache checking for File.lastModified heavily slowing down startup
- #6731 – Use java_home command on MacOS
- #6734 – Backport JarCache soft reference fix
- #6737 – GPL-2.0 with Classpath Exception in the COPYING file
- #6740 – 6730 jar cache slowing down startup time 9.2
- #6741 – Fix reference type and avoid closing jar directly
- #6742 – Backport FFI from master
- #6745 – exec on Windows doesn’t find
.bat
files in PATH - #6746 – Fixes for Windows native exec
- #6747 – Backport FFI from master
- #6748 – Inconsistent encoding when calling #to_s on arrays containing hashes with non us-ascii characters
- #6750 – JRuby issue with Installer EXE file
- #6758 – private/private_method_defined? raising error when a module is prepended
- #6759 – Fixes #6748. Inconsistent encoding when calling #to_s on arrays.
- #6761 – JRuby crashes instead of reporting a syntax error in sequential
rescue
s where the error variable wasn’t defined for the first one - #6764 – 1r should equal to 1.0r
- #6765 – Use canonical form for “r” liternal
- #6767 – Calling String#dup on strings used as a buffer in IO.copy_stream alters the body of all strings duped from the original
- #6768 – stacktrace first line erroneously reports line number. Reports duplicate line # as second line of stacktrace.
- #6769 – Undo shared-buffer optimizations from #6557
- #6770 – Use line number of scope for initial backtrace
- #6771 – Handle varargs frame on arity error in jitted code
- #6776 – With prepend the aliased method gets the wrong self target
- #6779 – fix CGI.unescapeHTML with invalid encoding
- #6782 – Real fix for #6676 for 9.2
- #6784 – Create and use pure-bash dirname and basename
- #6799 – update ffi to 1.15.4
- #6872 – Jruby does not support the “old” LetsEncrypt chain after DST Root CA X3 has expired
- #6883 – Trust native unlink errno to do the right thing
- #6903 – Set#dup does not seem to call #initialize_copy
- #6909 – [deps] update jruby-openssl to 0.11.0
- #6910 – Dynamic dispatch to super.initialize_[dup,clone] in native Set
- #6911 – Update jnr and asm
- #6928 – Fix raw and varargs backtrace elements
转自 https://www.jruby.org/news