langtools/test/tools/javac/T6231847.java
changeset 10 06bc494ca11e
child 6150 d055fa8ced62
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/langtools/test/tools/javac/T6231847.java	Sat Dec 01 00:00:00 2007 +0000
@@ -0,0 +1,20 @@
+/*
+ * @test  /nodynamiccopyright/
+ * @bug     6231847
+ * @summary Crash in com.sun.tools.javac.comp.Attr.visitNewClass:1352
+ * @author  Peter von der Ah\u00e9
+ * @compile/fail -XDdev T6231847.java
+ * @compile/fail/ref=T6231847.out -XDdev -XDrawDiagnostics -XDstdout T6231847.java
+ */
+
+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() {};
+}