d4be9a13c8
Add type-checking support for default methods as per Featherweight-Defender document Reviewed-by: jjg, dlsmith
17 lines
332 B
Java
17 lines
332 B
Java
/*
|
|
* @test /nodynamiccopyright/
|
|
* @summary flow analysis is not run on inlined default bodies
|
|
* @compile/fail/ref=Neg06.out -XDallowDefaultMethods -XDrawDiagnostics Neg06.java
|
|
*/
|
|
|
|
class Neg06 {
|
|
|
|
interface A {
|
|
default String m() { C.m(); }
|
|
}
|
|
|
|
static class C {
|
|
static String m() { return ""; }
|
|
}
|
|
}
|