This repository has been archived by the owner. It is now read-only.
Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
8259235: javac crashes while attributing super method invocation
Reviewed-by: vromero
- Loading branch information
Showing
with
18 additions
and 1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,15 @@ | ||
/** | ||
* @test /nodynamiccopyright/ | ||
* @bug 8259235 | ||
* @summary Invocation of a method from a superinterface in a class that has an erroneous supertype | ||
* should not crash javac. | ||
* @compile/fail/ref=SuperMethodCallBroken.out -XDdev -XDrawDiagnostics SuperMethodCallBroken.java | ||
*/ | ||
public abstract class SuperMethodCallBroken extends Undef implements I, java.util.List<String> { | ||
public void test() { | ||
I.super.test(); | ||
} | ||
} | ||
interface I { | ||
public default void test() {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,2 @@ | ||
SuperMethodCallBroken.java:8:53: compiler.err.cant.resolve: kindname.class, Undef, , | ||
1 error |