/* * @test /nodynamiccopyright/ * @bug 8067883 * @summary Javac misses some opportunities for diagnostic simplification * * @compile/fail/ref=T8067883a.out -Xdiags:compact -XDrawDiagnostics T8067883.java * @compile/fail/ref=T8067883b.out -Xdiags:verbose -XDrawDiagnostics T8067883.java * */ import java.util.List; class T8067883 { void testMethod(List li) { m(null, li); m(1, li); } void testDiamond(List li) { new Box<>(null, li); new Box<>(1, li); } void m(List z, List ls) { } static class Box { Box(List z, List ls) { } } }