1.1 --- a/test/tools/javac/lambda/MethodReference26.java Mon Jan 21 11:16:28 2013 -0800 1.2 +++ b/test/tools/javac/lambda/MethodReference26.java Mon Jan 21 20:13:56 2013 +0000 1.3 @@ -1,9 +1,30 @@ 1.4 /* 1.5 - * @test /nodynamiccopyright/ 1.6 - * @bug 8003280 1.7 - * @summary Add lambda tests 1.8 - * check strict method conversion does not allow loose method reference conversion 1.9 - * @compile/fail/ref=MethodReference26.out -XDrawDiagnostics MethodReference26.java 1.10 + * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. 1.11 + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.12 + * 1.13 + * This code is free software; you can redistribute it and/or modify it 1.14 + * under the terms of the GNU General Public License version 2 only, as 1.15 + * published by the Free Software Foundation. 1.16 + * 1.17 + * This code is distributed in the hope that it will be useful, but WITHOUT 1.18 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1.19 + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1.20 + * version 2 for more details (a copy is included in the LICENSE file that 1.21 + * accompanied this code). 1.22 + * 1.23 + * You should have received a copy of the GNU General Public License version 1.24 + * 2 along with this work; if not, write to the Free Software Foundation, 1.25 + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1.26 + * 1.27 + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 1.28 + * or visit www.oracle.com if you need additional information or have any 1.29 + * questions. 1.30 + */ 1.31 + 1.32 +/* 1.33 + * @test 1.34 + * @summary check strict method conversion allows loose method reference conversion 1.35 + * @compile MethodReference26.java 1.36 */ 1.37 1.38 class MethodReference26 { 1.39 @@ -18,6 +39,6 @@ 1.40 static void call(Integer i, SAM s) { } 1.41 1.42 static void test() { 1.43 - call(1, MethodReference26::m); //ambiguous 1.44 + call(1, MethodReference26::m); //ok 1.45 } 1.46 }