Skip to content

Commit

Permalink
Removed unusefull workaround
Browse files Browse the repository at this point in the history
Given that Logstash already ships with JRuby 9.4.6.0 which contains the fix jruby/jruby#8061, the workaround to avoid the original bad param numbers can be removed.
  • Loading branch information
andsel authored Apr 3, 2024
1 parent 1f5f735 commit 694a599
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/bootstrap/rspec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@
# specific language governing permissions and limitations
# under the License.

# The following line is a workaround needed because starting from JDK 21 LinkedHashSet
# has a package private map method that JRuby bound as a usable method.
# It's mainly related to Gradle opening java.base module and this interfere with
# JRuby binding of methods. Full description at https://github.com/jruby/jruby/issues/8061#issuecomment-1908807511
# Remove when Logstash bundle a JRuby version >= 9.4.6.0.
# java.util.LinkedHashSet.remove_method(:map) rescue nil

require_relative "environment"
LogStash::Bundler.setup!({:without => [:build]})
Expand Down

0 comments on commit 694a599

Please sign in to comment.