|
Java example source code file (Neg12.java)
The Neg12.java Java example source code/* @test /nodynamiccopyright/ * @bug 7192246 * @summary check that abstract methods are discarded in overload resolution diags * @compile/fail/ref=Neg12.out -XDrawDiagnostics Neg12.java */ class Neg12 { interface I1 { default void m(String s) {}; } interface I2 { void m(String s); } static class B { void m(Integer i) { } } static class C extends B implements I1 { } static class D extends B implements I2 { } void test(C c, D d) { c.m(); d.m(); } } Other Java examples (source code examples)Here is a short list of links related to this Java Neg12.java source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.