Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatic merge of jdk:master into master
- Loading branch information
Showing
4 changed files
with
64 additions
and
12 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
class Cyclic { | ||
0xCAFEBABE; | ||
0; // minor version | ||
57; // version | ||
[] { // Constant Pool | ||
; // first element is empty | ||
class #2; // #1 | ||
Utf8 "Cyclic"; // #2 | ||
class #4; // #3 | ||
Utf8 "java/lang/Object"; // #4 | ||
} // Constant Pool | ||
|
||
0x0600; // access | ||
#1;// this_cpx | ||
#3;// super_cpx | ||
|
||
[] { // Interfaces | ||
#1; | ||
} // Interfaces | ||
|
||
[] { // fields | ||
} // fields | ||
|
||
[] { // methods | ||
} // methods | ||
|
||
[] { // Attributes | ||
} // Attributes | ||
} // end class Cyclic |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/* | ||
* @test /nodynamiccopyright/ | ||
* @bug 8236697 | ||
* @summary Stack overflow with cyclic hierarchy in class file | ||
* @build Cyclic | ||
* @compile/fail/ref=T8236697.out -XDrawDiagnostics T8236697.java | ||
*/ | ||
interface T8236697 extends Iterable { | ||
|
||
public Cyclic iterator(); | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
T8236697.java:10:19: compiler.err.override.incompatible.ret: (compiler.misc.clashes.with: iterator(), T8236697, iterator(), java.lang.Iterable), Cyclic, java.util.Iterator | ||
1 error |