1.1 --- a/test/tools/javac/inference/EagerReturnTypeResolution/PrimitiveTypeBoxingTest.java Wed May 28 02:28:07 2014 -0700 1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 1.3 @@ -1,25 +0,0 @@ 1.4 -/* 1.5 - * @test /nodynamiccopyright/ 1.6 - * @bug 8030741 1.7 - * @summary Inference: implement eager resolution of return types, consistent with JDK-8028800 1.8 - * @compile/fail/ref=PrimitiveTypeBoxingTest.out -XDrawDiagnostics PrimitiveTypeBoxingTest.java 1.9 - */ 1.10 - 1.11 -public class PrimitiveTypeBoxingTest { 1.12 - 1.13 - static void foo(long arg) {} 1.14 - static void bar(int arg) {} 1.15 - 1.16 - interface F<X> { void get(X arg); } 1.17 - 1.18 - <Z> void m1(F<Z> f, Z arg) {} 1.19 - <Z> void m2(Z arg, F<Z> f) {} 1.20 - 1.21 - void test() { 1.22 - m1(PrimitiveTypeBoxingTest::foo, 23); // expected: error 1.23 - m2(23, PrimitiveTypeBoxingTest::foo); // expected: error 1.24 - 1.25 - m1(PrimitiveTypeBoxingTest::bar, 23); // expected: success 1.26 - m2(23, PrimitiveTypeBoxingTest::bar); // expected: success 1.27 - } 1.28 -}