Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions lib/active_record/connection_adapters/oracle_enhanced_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -779,13 +779,15 @@ module ActiveRecord
if RUBY_ENGINE == "jruby"
require "jruby"

class org.jruby::RubyObjectSpace::WeakMap
field_reader :map
end
unless ObjectSpace::WeakMap.new.respond_to? :values
class org.jruby::RubyObjectSpace::WeakMap
field_reader :map
end

class ObjectSpace::WeakMap
def values
JRuby.ref(self).map.values.reject(&:nil?)
class ObjectSpace::WeakMap
def values
JRuby.ref(self).map.values.reject(&:nil?)
end
end
end
end
end