author | hseigel |
Wed, 02 Mar 2016 23:48:41 +0000 | |
changeset 36397 | c487ced7231c |
parent 28335 | 0b37a4232e35 |
permissions | -rw-r--r-- |
10 | 1 |
/* |
28335
0b37a4232e35
8058373: Group 10a: golden files for tests in tools/javac dir
sogoel
parents:
6150
diff
changeset
|
2 |
* @test /nodynamiccopyright/ |
10 | 3 |
* @bug 6231847 |
4 |
* @summary Crash in com.sun.tools.javac.comp.Attr.visitNewClass:1352 |
|
5 |
* @author Peter von der Ah\u00e9 |
|
6150 | 6 |
* @compile/fail/ref=T6231847.out -XDdev -XDrawDiagnostics T6231847.java |
10 | 7 |
*/ |
8 |
||
9 |
class T6231847 { |
|
10 |
interface T6231847I {} |
|
11 |
static class T6231847C {} |
|
12 |
||
13 |
T6231847 t; |
|
14 |
Object o = new <Object> T6231847I() {}; |
|
15 |
Object p = new T6231847I(o) {}; |
|
16 |
Object q = t.new T6231847I() {}; |
|
17 |
Object r = t.new <Object> T6231847I(o) {}; |
|
18 |
Object s = t.new T6231847C() {}; |
|
19 |
} |