test/tools/javac/synthesize/Integer.java

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

author
mcimadamore
date
Thu, 21 Feb 2013 15:26:46 +0000
changeset 1599
9f0ec00514b6
parent 554
9d9f26857129
child 2525
2eb010b6cb22
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@86 1 /*
ohair@554 2 * Copyright (c) 2007, 2008, Oracle and/or its affiliates. All rights reserved.
jjg@86 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
jjg@86 4 *
jjg@86 5 * This code is free software; you can redistribute it and/or modify it
jjg@86 6 * under the terms of the GNU General Public License version 2 only, as
jjg@86 7 * published by the Free Software Foundation.
jjg@86 8 *
jjg@86 9 * This code is distributed in the hope that it will be useful, but WITHOUT
jjg@86 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
jjg@86 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
jjg@86 12 * version 2 for more details (a copy is included in the LICENSE file that
jjg@86 13 * accompanied this code).
jjg@86 14 *
jjg@86 15 * You should have received a copy of the GNU General Public License version
jjg@86 16 * 2 along with this work; if not, write to the Free Software Foundation,
jjg@86 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
jjg@86 18 *
ohair@554 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
ohair@554 20 * or visit www.oracle.com if you need additional information or have any
ohair@554 21 * questions.
jjg@86 22 */
jjg@86 23
jjg@86 24 package java.lang;
jjg@86 25
jjg@86 26 public class Integer extends Number
jjg@86 27 {
jjg@86 28 public static Integer valueOf(int v) {
jjg@86 29 return new Integer(v);
jjg@86 30 }
jjg@86 31
jjg@86 32 public Integer(int v) {
jjg@86 33 value = v;
jjg@86 34 }
jjg@86 35
jjg@86 36 public int integerValue() {
jjg@86 37 return value;
jjg@86 38 }
jjg@86 39
jjg@86 40 private int value;
jjg@86 41 }

mercurial