Thu, 10 Oct 2013 14:58:04 +0200
8001931: The new build system whitespace cleanup
Reviewed-by: tbell, simonis, erikj
aoqi@0 | 1 | /* |
aoqi@0 | 2 | * @test /nodynamiccopyright/ |
aoqi@0 | 3 | * @bug 8023545 |
aoqi@0 | 4 | * @summary Misleading error message when using diamond operator with private constructor |
aoqi@0 | 5 | * @compile/fail/ref=MisleadingErrorMsgDiamondPlusPrivateCtorTest.out -XDrawDiagnostics MisleadingErrorMsgDiamondPlusPrivateCtorTest.java |
aoqi@0 | 6 | */ |
aoqi@0 | 7 | |
aoqi@0 | 8 | public class MisleadingErrorMsgDiamondPlusPrivateCtorTest { |
aoqi@0 | 9 | public void foo() { |
aoqi@0 | 10 | MyClass<Object> foo = new MyClass<>(); |
aoqi@0 | 11 | } |
aoqi@0 | 12 | } |
aoqi@0 | 13 | |
aoqi@0 | 14 | class MyClass<E> { |
aoqi@0 | 15 | private MyClass() {} |
aoqi@0 | 16 | } |