Wed, 04 Jun 2014 20:01:13 +0100
8041713: Type inference of non-existent method references crashes the compiler
Reviewed-by: mcimadamore
aoqi@0 | 1 | /* |
aoqi@0 | 2 | * @test /nodynamiccopyright/ |
aoqi@0 | 3 | * @bug 8041713 |
aoqi@0 | 4 | * @summary Type inference of non-existent method references crashes the compiler |
aoqi@0 | 5 | * @compile/fail/ref=DiamondPlusUnexistingMethodRefCrashTest.out -XDrawDiagnostics DiamondPlusUnexistingMethodRefCrashTest.java |
aoqi@0 | 6 | */ |
aoqi@0 | 7 | |
aoqi@0 | 8 | public class DiamondPlusUnexistingMethodRefCrashTest<T> { |
aoqi@0 | 9 | DiamondPlusUnexistingMethodRefCrashTest<String> m = |
aoqi@0 | 10 | new DiamondPlusUnexistingMethodRefCrashTest<>(DiamondPlusUnexistingMethodRefCrashTest::doNotExists); |
aoqi@0 | 11 | } |