2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2015-01-09 06:01:20 +00:00
|
|
|
* @test /nodynamiccopyright/
|
2007-12-01 00:00:00 +00:00
|
|
|
* @bug 6231847
|
|
|
|
* @summary Crash in com.sun.tools.javac.comp.Attr.visitNewClass:1352
|
|
|
|
* @author Peter von der Ah\u00e9
|
2010-07-26 21:18:45 +00:00
|
|
|
* @compile/fail/ref=T6231847.out -XDdev -XDrawDiagnostics T6231847.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
class T6231847 {
|
|
|
|
interface T6231847I {}
|
|
|
|
static class T6231847C {}
|
|
|
|
|
|
|
|
T6231847 t;
|
|
|
|
Object o = new <Object> T6231847I() {};
|
|
|
|
Object p = new T6231847I(o) {};
|
|
|
|
Object q = t.new T6231847I() {};
|
|
|
|
Object r = t.new <Object> T6231847I(o) {};
|
|
|
|
Object s = t.new T6231847C() {};
|
|
|
|
}
|