URL: http://github.com/jruby/jruby/commit/ccb07578fffb67e31dc81ca610f7e12cf0540c3b
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97ae862 commit ccb0757Copy full SHA for ccb0757
1 file changed
spec/java_integration/interfaces/implementation_spec.rb
@@ -827,6 +827,25 @@ def bar
827
828
expect(java_cls.interfaces).to include(java.lang.Runnable.java_class)
829
end
830
+
831
832
+ describe "that extends a specializable RubyObject" do
833
+ class C1
834
+ end
835
836
+ it "produces a Java class that extends that specialized type" do
837
+ # construct C1 first to use specialized class
838
+ c1obj = C1.new
839
840
+ c2 = Class.new(C1) do
841
+ include ReturnsInterface
842
843
844
+ c2obj = c2.new
845
846
+ expect(JRuby.ref(c2obj).getClass.getSuperclass).to eq(JRuby.ref(c1obj).getClass)
847
848
849
850
851
describe "A class that extends a DelegateClass" do
0 commit comments