test/tools/javac/resolve/tests/PrimitiveOverReferenceOverVarargs.java

changeset 0
959103a6100f
equal deleted inserted replaced
-1:000000000000 0:959103a6100f
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 */
23
24 @TraceResolve
25 class PrimitiveOverReference {
26 @Candidate(applicable=Phase.BASIC, mostSpecific=true)
27 static void m_byte(byte b) {}
28 @Candidate
29 static void m_byte(Byte b) {}
30 @Candidate
31 static void m_byte(byte... b) {}
32 @Candidate
33 static void m_byte(Byte... b) {}
34
35 @Candidate(applicable=Phase.BASIC, mostSpecific=true)
36 static void m_short(short s) {}
37 @Candidate
38 static void m_short(Short s) {}
39 @Candidate
40 static void m_short(short... s) {}
41 @Candidate
42 static void m_short(Short... s) {}
43
44 @Candidate(applicable=Phase.BASIC, mostSpecific=true)
45 static void m_int(int i) {}
46 @Candidate
47 static void m_int(Integer i) {}
48 @Candidate
49 static void m_int(int... i) {}
50 @Candidate
51 static void m_int(Integer... i) {}
52
53 @Candidate(applicable=Phase.BASIC, mostSpecific=true)
54 static void m_long(long l) {}
55 @Candidate
56 static void m_long(Long l) {}
57 @Candidate
58 static void m_long(long... l) {}
59 @Candidate
60 static void m_long(Long... l) {}
61
62 @Candidate(applicable=Phase.BASIC, mostSpecific=true)
63 static void m_float(float f) {}
64 @Candidate
65 static void m_float(Float f) {}
66 @Candidate
67 static void m_float(float... f) {}
68 @Candidate
69 static void m_float(Float... f) {}
70
71 @Candidate(applicable=Phase.BASIC, mostSpecific=true)
72 static void m_double(double d) {}
73 @Candidate
74 static void m_double(Double d) {}
75 @Candidate
76 static void m_double(double... d) {}
77 @Candidate
78 static void m_double(Double... d) {}
79
80 @Candidate(applicable=Phase.BASIC, mostSpecific=true)
81 static void m_char(char c) {}
82 @Candidate
83 static void m_char(Character c) {}
84 @Candidate
85 static void m_char(char... c) {}
86 @Candidate
87 static void m_char(Character... c) {}
88
89 @Candidate(applicable=Phase.BASIC, mostSpecific=true)
90 static void m_bool(boolean z) {}
91 @Candidate
92 static void m_bool(Boolean z) {}
93 @Candidate
94 static void m_bool(boolean... z) {}
95 @Candidate
96 static void m_bool(Boolean... z) {}
97
98 {
99 m_byte((byte)0);
100 m_short((short)0);
101 m_int(0);
102 m_long(0L);
103 m_float(0.0f);
104 m_double(0.0);
105 m_char('?');
106 m_bool(false);
107 }
108 }

mercurial