blob: a7f1b5c388666152ef29a5800fdfa72707db043d [file] [log] [blame]
/*
* @test /nodynamiccopyright/
* @bug 4916607
* @summary an unbounded (bivariant) wildcard doesn't allow reading
* @author gafter
*
* @compile/fail/ref=Unbounded.out -XDrawDiagnostics Unbounded.java
*/
import java.util.Stack;
class Bug {
void f() {
Stack<?> stack = null;
String o = stack.pop();
}
}