author | katleman |
Thu, 21 Aug 2014 14:16:14 -0700 | |
changeset 25878 | 6d561031123e |
parent 19934 | 1d8232b1aa18 |
permissions | -rw-r--r-- |
19934
1d8232b1aa18
8005222: Fixed bugs should have tests with bugid in @bug tag
jfranck
parents:
14547
diff
changeset
|
1 |
/* @test /nodynamiccopyright/ |
1d8232b1aa18
8005222: Fixed bugs should have tests with bugid in @bug tag
jfranck
parents:
14547
diff
changeset
|
2 |
* @bug 7192246 |
14443
91c05eb19277
7192246: Add type-checking support for default methods
mcimadamore
parents:
diff
changeset
|
3 |
* @summary check that level skipping in default super calls is correctly rejected |
14547 | 4 |
* @compile/fail/ref=Neg15.out -XDrawDiagnostics Neg15.java |
14443
91c05eb19277
7192246: Add type-checking support for default methods
mcimadamore
parents:
diff
changeset
|
5 |
*/ |
91c05eb19277
7192246: Add type-checking support for default methods
mcimadamore
parents:
diff
changeset
|
6 |
class Neg15 { |
91c05eb19277
7192246: Add type-checking support for default methods
mcimadamore
parents:
diff
changeset
|
7 |
interface I { default void m() { } } |
91c05eb19277
7192246: Add type-checking support for default methods
mcimadamore
parents:
diff
changeset
|
8 |
interface J extends I { default void m() { } } |
91c05eb19277
7192246: Add type-checking support for default methods
mcimadamore
parents:
diff
changeset
|
9 |
interface K extends I {} |
91c05eb19277
7192246: Add type-checking support for default methods
mcimadamore
parents:
diff
changeset
|
10 |
|
91c05eb19277
7192246: Add type-checking support for default methods
mcimadamore
parents:
diff
changeset
|
11 |
static class C implements J, K { |
91c05eb19277
7192246: Add type-checking support for default methods
mcimadamore
parents:
diff
changeset
|
12 |
void foo() { K.super.m(); } |
91c05eb19277
7192246: Add type-checking support for default methods
mcimadamore
parents:
diff
changeset
|
13 |
} |
91c05eb19277
7192246: Add type-checking support for default methods
mcimadamore
parents:
diff
changeset
|
14 |
} |