mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 23:34:52 +02:00
8187443: Forest Consolidation: Move files to unified layout
Reviewed-by: darcy, ihse
This commit is contained in:
parent
270fe13182
commit
3789983e89
56923 changed files with 3 additions and 15727 deletions
26
test/langtools/tools/javac/lambda/StaticMethodNegTest.java
Normal file
26
test/langtools/tools/javac/lambda/StaticMethodNegTest.java
Normal file
|
@ -0,0 +1,26 @@
|
|||
/**
|
||||
* @test /nodynamiccopyright/
|
||||
* @bug 8008337
|
||||
* @author sogoel
|
||||
* @summary static method is called via super
|
||||
* @compile/fail/ref=StaticMethodNegTest.out -XDrawDiagnostics StaticMethodNegTest.java
|
||||
*/
|
||||
|
||||
interface A {
|
||||
static String m() {
|
||||
return "A";
|
||||
}
|
||||
}
|
||||
|
||||
interface B {
|
||||
static String m() {
|
||||
return "B";
|
||||
}
|
||||
}
|
||||
|
||||
interface AB extends A, B {
|
||||
static String m() {
|
||||
return A.super.m();
|
||||
}
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue