This issue will track Ruby 2.6 support for JRuby. This will be released in JRuby 9.3.0.0
As with previous releases, we will base our checklist on MRI's NEWS file: https://github.com/ruby/ruby/blob/ruby_2_6/NEWS
This bug will track all NEWS items new in Ruby 2.6. This list is based off https://github.com/ruby/ruby/blob/ruby_2_6/NEWS.
Only changes relevant to JRuby are listed here. MRI-specific internal changes and features are not included.
NOTE: Pull requests should be done against the ruby-2.6 branch. That branch will be merged via #6037.
Language changes
Core classes updates (outstanding ones only)
Array
Binding
Dir
Enumerable
Enumerator::ArithmeticSequence
Enumerator::Chain
Enumerator::Lazy
Enumerator
ENV
Exception
Hash
IO
Kernel
KeyError
Method
Module
NameError
NilClass
NoMethodError
Numeric
OpenStruct
Proc
Random
Range
Regexp/String
String
Struct
Time
TracePoint
Stdlib updates (outstanding ones only)
BigDecimal
Note for the differences among recent versions
The differences among recent versions of bigdecimal. Please select the suitable version of bigdecimal according to the following information.
- 1.3.5 has BigDecimal.new without “exception:” keyword. You can see the deprecation warning of BigDecimal.new when you specify “-w” option. BigDecimal(), BigDecimal.new, and Object#to_d methods are the same.
- 1.4.0 has BigDecimal.new with “exception:” keyword. You always see the deprecation warning of BigDecimal.new. Object#to_d method is different from BigDecimal() and BigDecimal.new.
- 2.0.0 will be released soon after releasing Ruby 2.6.0. This version will not have the BigDecimal.new method.
Bundler
Coverage
CSV
ERB
FileUtils
Matrix
Net
NKF
Psych
RDoc
REXML
CSV
RSS
RubyGems
Set
URI
Compatibility issues (excluding feature bug fixes)
Dir
File
Object
Stdlib compatibility issues (excluding feature bug fixes)
These standard libraries have been promoted to default gems.
BigDecimal
- The following methods are removed.
Pathname
This issue will track Ruby 2.6 support for JRuby. This will be released in JRuby 9.3.0.0
As with previous releases, we will base our checklist on MRI's NEWS file: https://github.com/ruby/ruby/blob/ruby_2_6/NEWS
This bug will track all NEWS items new in Ruby 2.6. This list is based off https://github.com/ruby/ruby/blob/ruby_2_6/NEWS.
Only changes relevant to JRuby are listed here. MRI-specific internal changes and features are not included.
NOTE: Pull requests should be done against the
ruby-2.6branch. That branch will be merged via #6037.Language changes
elsewithoutrescuecauses a syntax error [Experimental] Feature #14606(0..)or(0...)Feature #12912causeof the exception if the exception is not caught and printed its backtraces and error message. Feature #8257Core classes updates (outstanding ones only)
Array
Binding
Dir
Enumerable
Enumerator::ArithmeticSequence
Enumerator::Chain
Enumerator::Lazy
Enumerator
ENV
Exception
:highlightand:order options. Bug #14324Hash
IO
'x'to open files for exclusive access. Feature #11258Kernel
:exceptionoption to specify the way of error handling. Feature #12732:exceptionoption to raise an exception on failure. Feature #14386:close_othersoption is changed tofalse, but we still set theFD_CLOEXECflag on descriptors we create). Misc #14907KeyError
:receiverand:keyoptions to set receiver and key in Ruby code. Feature #14313Method
Module
NameError
:receiveroption to set receiver in Ruby code. Feature #14313NilClass
NoMethodError
:receiveroption to set receiver in Ruby code. Feature #14313Numeric
OpenStruct
Proc
$SAFEany more. Feature #14250Random
Range
#cover?instead of the#include?method. Feature #14575Regexp/String
String
Struct
Time
TracePoint
Stdlib updates (outstanding ones only)
BigDecimal
Note for the differences among recent versions
The differences among recent versions of bigdecimal. Please select the suitable version of bigdecimal according to the following information.
Bundler
Coverage
:oneshot_lineskeyword argument to Coverage.start.:stopand:clearkeyword arguments to Coverage.result. Ifclearis true, it clears the counters to zero. Ifstopis true, it disables coverage measurement.CSV
ERB
:trim_modeand:eoutvarkeyword arguments to ERB.new. Now non-keyword arguments other than the first one are softly deprecated and will be removed when Ruby 2.5 becomes EOL. Feature #14256-Soption is deprecated, and will be removed in the next version.FileUtils
Matrix
Net
:write_timeoutkeyword argument to Net::HTTP.new. Feature #13396NKF
Psych
RDoc
--width,--exclude, and--line-numbersthat were ignored.REXML
concat()function: Stringify all arguments before concatenating.string()function: Support context node.string()function: Support processing instruction node."*:#{ELEMENT_NAME}"syntax in XPath 2.0."//#{ELEMENT_NAME}[#{POSITION}]"casestring()function: Fixfunction(document)returns nodes that are out of root elements."/ #{ELEMENT_NAME} "case"/ #{ELEMENT_NAME} [ #{PREDICATE} ]"case"/ #{AXIS}::#{ELEMENT_NAME}"case"#{N}-#{M}"case: One or more white spaces were required before"-""/child::node()"case"#{FUNCTION}()/#{PATH}"case"@#{ATTRIBUTE}/parent::"case"name(#{NODE_SET})"caseCSV
RSS
:validate,:ignore_unknown_element,:parser_classoptions are available.RubyGems
Set
URI
Compatibility issues (excluding feature bug fixes)
Dir
'\0'-separated pattern list will be deprecated, and is now warned. Feature #14643File
Object
Stdlib compatibility issues (excluding feature bug fixes)
These standard libraries have been promoted to default gems.
BigDecimal
Pathname
'|'. This follows Feature #14245