T6776289.java revision 553:9d9f26857129
1101172Srwatson/* 2101172Srwatson * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved. 3101172Srwatson * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4101172Srwatson * 5101172Srwatson * This code is free software; you can redistribute it and/or modify it 6101172Srwatson * under the terms of the GNU General Public License version 2 only, as 7101172Srwatson * published by the Free Software Foundation. 8101172Srwatson * 9101172Srwatson * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24/* 25 * @test 26 * @bug 6776289 27 * @summary Regression: javac7 doesnt resolve method calls properly 28 * @compile T6776289.java 29 */ 30 31class A { 32 private void m(int a, int b) { } 33} 34 35class T6776289 { 36 static void m(int a, String s) { } 37 class B extends A { 38 public void test() { 39 m(1, ""); 40 } 41 } 42} 43