diff --git a/lib/openhab/core/proxy.rb b/lib/openhab/core/proxy.rb index bd8b796a7..ecd6a5452 100644 --- a/lib/openhab/core/proxy.rb +++ b/lib/openhab/core/proxy.rb @@ -120,6 +120,11 @@ def self.included(klass) # define a sub-class of EventSubscriber as a child class of the including class klass.const_set(:EventSubscriber, Class.new(EventSubscriber)) end + + # @!visibility private + def to_java + __getobj__ + end end end end