|
Java example source code file (BadConv03.java)
The BadConv03.java Java example source code
/*
* @test /nodynamiccopyright/
* @bug 8003280
* @summary Add lambda tests
* NPE while checking if subinterface is a SAM type
* @compile/fail/ref=BadConv03.out -XDrawDiagnostics BadConv03.java
*/
class BadConv03 {
interface A {
void a();
}
interface B extends A { //not a SAM (2 non-override equivalent abstracts!)
void a(int i);
}
B b = ()-> { };
}
Other Java examples (source code examples)Here is a short list of links related to this Java BadConv03.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.