/* * @test /nodynamiccopyright/ * @bug 6450290 * @summary Capture of nested wildcards causes type error * @author Maurizio Cimadamore * @compile/fail/ref=T6450290.out -XDrawDiagnostics T6450290.java */ public class T6450290 { static class Box, T extends X> { T value; Box same; } static class A extends Box {} static class B extends Box {} public static void meth() { Box b = new Box,Box>(); b.value.same = new Box(); //javac misses this bad assignment } }