2010-08-19 11:50:50 +01:00
|
|
|
/*
|
2020-12-30 17:20:54 +00:00
|
|
|
* @test /nodynamiccopyright/
|
2010-08-19 11:50:50 +01:00
|
|
|
* @bug 6886247
|
2020-12-30 17:20:54 +00:00
|
|
|
* @author Maurizio Cimadamore
|
2010-08-19 11:50:50 +01:00
|
|
|
* @summary regression: javac crashes with an assertion error in Attr.java
|
|
|
|
* @compile/fail/ref=T6886247_2.out -XDrawDiagnostics T6886247_2.java
|
|
|
|
*/
|
|
|
|
|
|
|
|
class Outer<E> {
|
|
|
|
|
|
|
|
public void method(Outer<?>.Inner inner) {
|
|
|
|
E entry = inner.getE();
|
|
|
|
}
|
|
|
|
|
|
|
|
class Inner {
|
|
|
|
E getE() {return null;}
|
|
|
|
}
|
|
|
|
}
|