test/tools/javac/nativeHeaders/javahComparison/TestClass2.java

Thu, 21 Feb 2013 15:26:46 +0000

author
mcimadamore
date
Thu, 21 Feb 2013 15:26:46 +0000
changeset 1599
9f0ec00514b6
parent 1230
b14d9583ce92
permissions
-rw-r--r--

8007461: Regression: bad overload resolution when inner class and outer class have method with same name
Summary: Fix regression in varargs method resolution introduced by bad refactoring
Reviewed-by: jjg

jjg@1230 1 /*
jjg@1230 2 * Copyright (c) 2007, 2012, Oracle and/or its affiliates. All rights reserved.
jjg@1230 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
jjg@1230 4 *
jjg@1230 5 * This code is free software; you can redistribute it and/or modify it
jjg@1230 6 * under the terms of the GNU General Public License version 2 only, as
jjg@1230 7 * published by the Free Software Foundation.
jjg@1230 8 *
jjg@1230 9 * This code is distributed in the hope that it will be useful, but WITHOUT
jjg@1230 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
jjg@1230 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
jjg@1230 12 * version 2 for more details (a copy is included in the LICENSE file that
jjg@1230 13 * accompanied this code).
jjg@1230 14 *
jjg@1230 15 * You should have received a copy of the GNU General Public License version
jjg@1230 16 * 2 along with this work; if not, write to the Free Software Foundation,
jjg@1230 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
jjg@1230 18 *
jjg@1230 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
jjg@1230 20 * or visit www.oracle.com if you need additional information or have any
jjg@1230 21 * questions.
jjg@1230 22 */
jjg@1230 23
jjg@1230 24 import javax.tools.annotation.GenerateNativeHeader;
jjg@1230 25
jjg@1230 26 @GenerateNativeHeader
jjg@1230 27 public class TestClass2 {
jjg@1230 28 byte b;
jjg@1230 29 short s;
jjg@1230 30 int i;
jjg@1230 31 long l;
jjg@1230 32 float f;
jjg@1230 33 double d;
jjg@1230 34 Object o;
jjg@1230 35 String t;
jjg@1230 36 }

mercurial