test/langtools/tools/javac/8203436/T8203436a.java
author mcimadamore
Tue, 22 May 2018 13:37:05 +0100
changeset 50213 3085969bdf91
permissions -rw-r--r--
8203436: javac should fail early when emitting illegal signature attributes Summary: check that signature attributes do not contain non-denotable types Reviewed-by: vromero

/*
 * @test /nodynamiccopyright/
 * @bug 8203436
 * @summary javac should fail early when emitting illegal signature attributes
 * @compile/fail/ref=T8203436a.out -XDrawDiagnostics T8203436a.java
 */

class T8203436a<X> {
   class Inner { }

   void test(T8203436a<?> outer) {
      outer.new Inner() { };
   }
}