Wed, 08 Oct 2014 14:16:40 -0700
Merge
1 /*
2 * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * 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 */
24 @TraceResolve
25 class ReferenceOverVarargs {
27 @Candidate(applicable=Phase.BOX, mostSpecific=true)
28 static void m_byte(Byte b) {}
29 @Candidate
30 static void m_byte(byte... b) {}
31 @Candidate
32 static void m_byte(Byte... b) {}
34 @Candidate(applicable=Phase.BOX, mostSpecific=true)
35 static void m_short(Short s) {}
36 @Candidate
37 static void m_short(short... s) {}
38 @Candidate
39 static void m_short(Short... s) {}
41 @Candidate(applicable=Phase.BOX, mostSpecific=true)
42 static void m_int(Integer i) {}
43 @Candidate
44 static void m_int(int... i) {}
45 @Candidate
46 static void m_int(Integer... i) {}
48 @Candidate(applicable=Phase.BOX, mostSpecific=true)
49 static void m_long(Long l) {}
50 @Candidate
51 static void m_long(long... l) {}
52 @Candidate
53 static void m_long(Long... l) {}
55 @Candidate(applicable=Phase.BOX, mostSpecific=true)
56 static void m_float(Float f) {}
57 @Candidate
58 static void m_float(float... f) {}
59 @Candidate
60 static void m_float(Float... f) {}
62 @Candidate(applicable=Phase.BOX, mostSpecific=true)
63 static void m_double(Double d) {}
64 @Candidate
65 static void m_double(double... d) {}
66 @Candidate
67 static void m_double(Double... d) {}
69 @Candidate(applicable=Phase.BOX, mostSpecific=true)
70 static void m_char(Character c) {}
71 @Candidate
72 static void m_char(char... c) {}
73 @Candidate
74 static void m_char(Character... c) {}
76 @Candidate(applicable=Phase.BOX, mostSpecific=true)
77 static void m_bool(Boolean z) {}
78 @Candidate
79 static void m_bool(boolean... z) {}
80 @Candidate
81 static void m_bool(Boolean... z) {}
83 {
84 m_byte((byte)0);
85 m_short((short)0);
86 m_int(0);
87 m_long(0L);
88 m_float(0.0f);
89 m_double(0.0);
90 m_char('?');
91 m_bool(false);
92 }
93 }