Skip to content

Commit

Permalink
[rubygems/rubygems] Fix jruby build
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez authored and hsbt committed Sep 26, 2019
1 parent 966915d commit 54839f0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/rubygems/core_ext/kernel_warn.rb
Expand Up @@ -14,7 +14,11 @@ module Kernel

module_function define_method(:warn) {|*messages, **kw|
unless uplevel = kw[:uplevel]
return original_warn.call(*messages, **kw)
if Gem.java_platform?
return original_warn.call(*messages)
else
return original_warn.call(*messages, **kw)
end
end

# Ensure `uplevel` fits a `long`
Expand Down

0 comments on commit 54839f0

Please sign in to comment.