pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/jruby/jruby/commit/ccb07578fffb67e31dc81ca610f7e12cf0540c3b

/> Add test for interface impl with specialized superclass · jruby/jruby@ccb0757 · GitHub
Skip to content

Commit ccb0757

Browse files
committed
Add test for interface impl with specialized superclass
See #8412
1 parent 97ae862 commit ccb0757

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

spec/java_integration/interfaces/implementation_spec.rb

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -827,6 +827,25 @@ def bar
827827

828828
expect(java_cls.interfaces).to include(java.lang.Runnable.java_class)
829829
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+
end
843+
844+
c2obj = c2.new
845+
846+
expect(JRuby.ref(c2obj).getClass.getSuperclass).to eq(JRuby.ref(c1obj).getClass)
847+
end
848+
end
830849
end
831850

832851
describe "A class that extends a DelegateClass" do

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy