author | jjg |
Thu, 31 Mar 2016 15:20:50 -0700 | |
changeset 36778 | e04318f39f92 |
parent 36526 | 3b41f1c69604 |
permissions | -rw-r--r-- |
29637
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
1 |
/* |
36778
e04318f39f92
8152897: refactor ToolBox to allow reduced documented dependencies
jjg
parents:
36526
diff
changeset
|
2 |
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. |
29637
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
4 |
* |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
8 |
* |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
13 |
* accompanied this code). |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
14 |
* |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
18 |
* |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
21 |
* questions. |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
22 |
*/ |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
23 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
24 |
/* |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
25 |
* @test |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
26 |
* @bug 8049238 |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
27 |
* @summary Checks Signature attribute for array return type of method. |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
28 |
* @library /tools/lib /tools/javac/lib ../lib |
30730
d3ce7619db2c
8076543: Add @modules as needed to the langtools tests
akulyakh
parents:
29637
diff
changeset
|
29 |
* @modules java.desktop |
d3ce7619db2c
8076543: Add @modules as needed to the langtools tests
akulyakh
parents:
29637
diff
changeset
|
30 |
* jdk.compiler/com.sun.tools.javac.api |
d3ce7619db2c
8076543: Add @modules as needed to the langtools tests
akulyakh
parents:
29637
diff
changeset
|
31 |
* jdk.compiler/com.sun.tools.javac.main |
35359 | 32 |
* jdk.jdeps/com.sun.tools.classfile |
36778
e04318f39f92
8152897: refactor ToolBox to allow reduced documented dependencies
jjg
parents:
36526
diff
changeset
|
33 |
* @build toolbox.ToolBox InMemoryFileManager TestResult TestBase |
29637
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
34 |
* @build ReturnTypeTest Driver ExpectedSignature ExpectedSignatureContainer |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
35 |
* @run main Driver ReturnTypeTest |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
36 |
*/ |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
37 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
38 |
import java.awt.Frame; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
39 |
import java.util.List; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
40 |
import java.util.Map; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
41 |
import java.util.concurrent.Callable; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
42 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
43 |
@ExpectedSignature(descriptor = "ReturnTypeTest", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
44 |
signature = "<T:Ljava/awt/Frame;:Ljava/lang/Runnable;:Ljava/util/concurrent/Callable<[TT;>;>Ljava/lang/Object;") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
45 |
public class ReturnTypeTest<T extends Frame & Runnable & Callable<T[]>> { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
46 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
47 |
@ExpectedSignature(descriptor = "byteArrayReturnType(java.awt.Frame)", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
48 |
signature = "(TT;)[B") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
49 |
byte[] byteArrayReturnType(T a) { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
50 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
51 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
52 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
53 |
@ExpectedSignature(descriptor = "shortArrayReturnType(java.awt.Frame)", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
54 |
signature = "(TT;)[S") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
55 |
short[] shortArrayReturnType(T a) { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
56 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
57 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
58 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
59 |
@ExpectedSignature(descriptor = "charArrayReturnType(java.awt.Frame)", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
60 |
signature = "(TT;)[C") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
61 |
char[] charArrayReturnType(T a) { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
62 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
63 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
64 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
65 |
@ExpectedSignature(descriptor = "intArrayReturnType(java.awt.Frame)", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
66 |
signature = "(TT;)[I") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
67 |
int[] intArrayReturnType(T a) { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
68 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
69 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
70 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
71 |
@ExpectedSignature(descriptor = "longArrayReturnType(java.awt.Frame)", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
72 |
signature = "(TT;)[J") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
73 |
long[] longArrayReturnType(T a) { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
74 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
75 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
76 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
77 |
@ExpectedSignature(descriptor = "booleanArrayReturnType(java.awt.Frame)", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
78 |
signature = "(TT;)[Z") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
79 |
boolean[] booleanArrayReturnType(T a) { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
80 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
81 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
82 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
83 |
@ExpectedSignature(descriptor = "floatArrayReturnType(java.awt.Frame)", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
84 |
signature = "(TT;)[F") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
85 |
float[] floatArrayReturnType(T a) { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
86 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
87 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
88 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
89 |
@ExpectedSignature(descriptor = "doubleArrayReturnType(java.awt.Frame)", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
90 |
signature = "(TT;)[D") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
91 |
double[] doubleArrayReturnType(T a) { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
92 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
93 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
94 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
95 |
@ExpectedSignature(descriptor = "objectArrayReturnType(java.awt.Frame)", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
96 |
signature = "(TT;)[Ljava/lang/Object;") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
97 |
Object[] objectArrayReturnType(T a) { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
98 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
99 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
100 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
101 |
@ExpectedSignature(descriptor = "staticByteArrayReturnType(java.lang.Object)", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
102 |
signature = "<T:Ljava/lang/Object;>(TT;)[B") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
103 |
static <T> byte[] staticByteArrayReturnType(T a) { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
104 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
105 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
106 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
107 |
@ExpectedSignature(descriptor = "staticShortArrayReturnType(java.lang.Object)", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
108 |
signature = "<T:Ljava/lang/Object;>(TT;)[S") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
109 |
static <T> short[] staticShortArrayReturnType(T a) { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
110 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
111 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
112 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
113 |
@ExpectedSignature(descriptor = "staticCharArrayReturnType(java.lang.Object)", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
114 |
signature = "<T:Ljava/lang/Object;>(TT;)[C") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
115 |
static <T> char[] staticCharArrayReturnType(T a) { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
116 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
117 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
118 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
119 |
@ExpectedSignature(descriptor = "staticIntArrayReturnType(java.lang.Object)", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
120 |
signature = "<T:Ljava/lang/Object;>(TT;)[I") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
121 |
static <T> int[] staticIntArrayReturnType(T a) { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
122 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
123 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
124 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
125 |
@ExpectedSignature(descriptor = "staticLongArrayReturnType(java.lang.Object)", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
126 |
signature = "<T:Ljava/lang/Object;>(TT;)[J") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
127 |
static <T> long[] staticLongArrayReturnType(T a) { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
128 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
129 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
130 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
131 |
@ExpectedSignature(descriptor = "staticBooleanArrayReturnType(java.lang.Object)", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
132 |
signature = "<T:Ljava/lang/Object;>(TT;)[Z") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
133 |
static <T> boolean[] staticBooleanArrayReturnType(T a) { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
134 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
135 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
136 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
137 |
@ExpectedSignature(descriptor = "staticFloatArrayReturnType(java.lang.Object)", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
138 |
signature = "<T:Ljava/lang/Object;>(TT;)[F") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
139 |
static <T> float[] staticFloatArrayReturnType(T a) { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
140 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
141 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
142 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
143 |
@ExpectedSignature(descriptor = "staticDoubleArrayReturnType(java.lang.Object)", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
144 |
signature = "<T:Ljava/lang/Object;>(TT;)[D") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
145 |
static <T> double[] staticDoubleArrayReturnType(T a) { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
146 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
147 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
148 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
149 |
@ExpectedSignature(descriptor = "staticObjectArrayReturnType(java.lang.Object)", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
150 |
signature = "<T:Ljava/lang/Object;>(TT;)[Ljava/lang/Object;") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
151 |
static <T> Object[] staticObjectArrayReturnType(T a) { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
152 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
153 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
154 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
155 |
byte[] byteArrayReturnTypeNoSignatureAttribute() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
156 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
157 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
158 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
159 |
short[] shortArrayReturnTypeNoSignatureAttribute() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
160 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
161 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
162 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
163 |
char[] charArrayReturnTypeNoSignatureAttribute() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
164 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
165 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
166 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
167 |
int[] intArrayReturnTypeNoSignatureAttribute() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
168 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
169 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
170 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
171 |
long[] longArrayReturnTypeNoSignatureAttribute() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
172 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
173 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
174 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
175 |
boolean[] booleanArrayReturnTypeNoSignatureAttribute() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
176 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
177 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
178 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
179 |
float[] floatArrayReturnTypeNoSignatureAttribute() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
180 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
181 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
182 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
183 |
double[] doubleArrayReturnTypeNoSignatureAttribute() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
184 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
185 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
186 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
187 |
Object[] objectArrayReturnTypeNoSignatureAttribute() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
188 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
189 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
190 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
191 |
static byte[] staticByteArrayReturnTypeNoSignatureAttribute() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
192 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
193 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
194 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
195 |
static short[] staticShortArrayReturnTypeNoSignatureAttribute() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
196 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
197 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
198 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
199 |
static char[] staticCharArrayReturnTypeNoSignatureAttribute() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
200 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
201 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
202 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
203 |
static int[] staticIntArrayReturnTypeNoSignatureAttribute() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
204 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
205 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
206 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
207 |
static long[] staticLongArrayReturnTypeNoSignatureAttribute() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
208 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
209 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
210 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
211 |
static boolean[] staticBooleanArrayReturnTypeNoSignatureAttribute() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
212 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
213 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
214 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
215 |
static float[] staticFloatArrayReturnTypeNoSignatureAttribute() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
216 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
217 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
218 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
219 |
static double[] staticDoubleArrayReturnTypeNoSignatureAttribute() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
220 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
221 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
222 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
223 |
static Object[] staticObjectArrayReturnTypeNoSignatureAttribute() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
224 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
225 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
226 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
227 |
@ExpectedSignature(descriptor = "typeReturnType()", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
228 |
signature = "()TT;") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
229 |
T typeReturnType() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
230 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
231 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
232 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
233 |
@ExpectedSignature(descriptor = "typeArrayReturnType()", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
234 |
signature = "()[TT;") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
235 |
T[] typeArrayReturnType() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
236 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
237 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
238 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
239 |
@ExpectedSignature(descriptor = "extendsReturnType()", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
240 |
signature = "<E:TT;>()TE;") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
241 |
<E extends T> E extendsReturnType() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
242 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
243 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
244 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
245 |
@ExpectedSignature(descriptor = "extendsArrayReturnType()", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
246 |
signature = "<E:TT;>()[TE;") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
247 |
<E extends T> E[] extendsArrayReturnType() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
248 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
249 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
250 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
251 |
@ExpectedSignature(descriptor = "genericListReturnType()", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
252 |
signature = "()Ljava/util/List<TT;>;") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
253 |
List<T> genericListReturnType() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
254 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
255 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
256 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
257 |
@ExpectedSignature(descriptor = "genericListArrayReturnType()", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
258 |
signature = "()[Ljava/util/List<TT;>;") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
259 |
List<T>[] genericListArrayReturnType() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
260 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
261 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
262 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
263 |
@ExpectedSignature(descriptor = "extendsBoundReturnType()", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
264 |
signature = "()Ljava/util/List<+TT;>;") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
265 |
List<? extends T> extendsBoundReturnType() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
266 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
267 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
268 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
269 |
@ExpectedSignature(descriptor = "extendsBoundArrayReturnType()", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
270 |
signature = "()[Ljava/util/List<+TT;>;") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
271 |
List<? extends T>[] extendsBoundArrayReturnType() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
272 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
273 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
274 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
275 |
@ExpectedSignature(descriptor = "superBoundReturnType()", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
276 |
signature = "()Ljava/util/List<-TT;>;") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
277 |
List<? super T> superBoundReturnType() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
278 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
279 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
280 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
281 |
@ExpectedSignature(descriptor = "superBoundArrayReturnType()", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
282 |
signature = "()[Ljava/util/List<-TT;>;") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
283 |
List<? super T>[] superBoundArrayReturnType() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
284 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
285 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
286 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
287 |
@ExpectedSignature(descriptor = "wildcardReturnType()", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
288 |
signature = "()Ljava/util/Map<**>;") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
289 |
Map<?, ?> wildcardReturnType() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
290 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
291 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
292 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
293 |
@ExpectedSignature(descriptor = "wildcardArrayReturnType()", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
294 |
signature = "()[Ljava/util/Map<**>;") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
295 |
Map<?, ?>[] wildcardArrayReturnType() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
296 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
297 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
298 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
299 |
@ExpectedSignature(descriptor = "staticTypeReturnType()", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
300 |
signature = "<T:Ljava/lang/Object;>()TT;") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
301 |
static <T> T staticTypeReturnType() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
302 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
303 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
304 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
305 |
@ExpectedSignature(descriptor = "staticTypeArrayReturnType()", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
306 |
signature = "<T:Ljava/lang/Object;>()[TT;") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
307 |
static <T> T[] staticTypeArrayReturnType() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
308 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
309 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
310 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
311 |
@ExpectedSignature(descriptor = "staticExtendsReturnType()", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
312 |
signature = "<T:Ljava/lang/Object;E:TT;>()TE;") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
313 |
static <T, E extends T> E staticExtendsReturnType() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
314 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
315 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
316 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
317 |
@ExpectedSignature(descriptor = "staticExtendsArrayReturnType()", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
318 |
signature = "<T:Ljava/lang/Object;E:TT;>()[TE;") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
319 |
static <T, E extends T> E[] staticExtendsArrayReturnType() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
320 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
321 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
322 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
323 |
@ExpectedSignature(descriptor = "staticGenericListReturnType()", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
324 |
signature = "<T:Ljava/lang/Object;>()Ljava/util/List<TT;>;") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
325 |
static <T> List<T> staticGenericListReturnType() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
326 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
327 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
328 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
329 |
@ExpectedSignature(descriptor = "staticGenericListArrayReturnType()", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
330 |
signature = "<T:Ljava/lang/Object;>()[Ljava/util/List<TT;>;") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
331 |
static <T> List<T>[] staticGenericListArrayReturnType() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
332 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
333 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
334 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
335 |
@ExpectedSignature(descriptor = "staticExtendsBoundReturnType()", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
336 |
signature = "<T:Ljava/lang/Object;>()Ljava/util/List<+TT;>;") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
337 |
static <T> List<? extends T> staticExtendsBoundReturnType() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
338 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
339 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
340 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
341 |
@ExpectedSignature(descriptor = "staticExtendsBoundArrayReturnType()", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
342 |
signature = "<T:Ljava/lang/Object;>()[Ljava/util/List<+TT;>;") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
343 |
static <T> List<? extends T>[] staticExtendsBoundArrayReturnType() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
344 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
345 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
346 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
347 |
@ExpectedSignature(descriptor = "staticSuperBoundReturnType()", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
348 |
signature = "<T:Ljava/lang/Object;>()Ljava/util/List<-TT;>;") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
349 |
static <T> List<? super T> staticSuperBoundReturnType() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
350 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
351 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
352 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
353 |
@ExpectedSignature(descriptor = "staticSuperBoundArrayReturnType()", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
354 |
signature = "<T:Ljava/lang/Object;>()[Ljava/util/List<-TT;>;") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
355 |
static <T> List<? super T>[] staticSuperBoundArrayReturnType() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
356 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
357 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
358 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
359 |
@ExpectedSignature(descriptor = "staticWildcardReturnType()", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
360 |
signature = "()Ljava/util/Map<**>;") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
361 |
static Map<?, ?> staticWildcardReturnType() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
362 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
363 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
364 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
365 |
@ExpectedSignature(descriptor = "staticWildcardArrayReturnType()", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
366 |
signature = "()[Ljava/util/Map<**>;") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
367 |
static Map<?, ?>[] staticWildcardArrayReturnType() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
368 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
369 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
370 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
371 |
List noSignature() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
372 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
373 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
374 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
375 |
static List staticNoSignatureAttribute() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
376 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
377 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
378 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
379 |
@ExpectedSignature(descriptor = "boundsBooleanArray()", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
380 |
signature = "()Ljava/util/Map<+[Z-[Z>;") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
381 |
Map<? extends boolean[], ? super boolean[]> boundsBooleanArray() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
382 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
383 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
384 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
385 |
@ExpectedSignature(descriptor = "boundsByteArray()", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
386 |
signature = "()Ljava/util/Map<+[B-[B>;") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
387 |
Map<? extends byte[], ? super byte[]> boundsByteArray() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
388 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
389 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
390 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
391 |
@ExpectedSignature(descriptor = "boundsShortArray()", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
392 |
signature = "()Ljava/util/Map<+[S-[S>;") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
393 |
Map<? extends short[], ? super short[]> boundsShortArray() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
394 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
395 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
396 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
397 |
@ExpectedSignature(descriptor = "boundsIntArray()", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
398 |
signature = "()Ljava/util/Map<+[I-[I>;") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
399 |
Map<? extends int[], ? super int[]> boundsIntArray() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
400 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
401 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
402 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
403 |
@ExpectedSignature(descriptor = "boundsLongArray()", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
404 |
signature = "()Ljava/util/Map<+[J-[J>;") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
405 |
Map<? extends long[], ? super long[]> boundsLongArray() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
406 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
407 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
408 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
409 |
@ExpectedSignature(descriptor = "boundsCharArray()", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
410 |
signature = "()Ljava/util/Map<+[C-[C>;") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
411 |
Map<? extends char[], ? super char[]> boundsCharArray() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
412 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
413 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
414 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
415 |
@ExpectedSignature(descriptor = "boundsFloatArray()", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
416 |
signature = "()Ljava/util/Map<+[F-[F>;") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
417 |
Map<? extends float[], ? super float[]> boundsFloatArray() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
418 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
419 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
420 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
421 |
@ExpectedSignature(descriptor = "boundsDoubleArray()", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
422 |
signature = "()Ljava/util/Map<+[D-[D>;") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
423 |
Map<? extends double[], ? super double[]> boundsDoubleArray() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
424 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
425 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
426 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
427 |
@ExpectedSignature(descriptor = "boundsObjectArray()", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
428 |
signature = "()Ljava/util/Map<+[Ljava/lang/Object;-[Ljava/lang/Object;>;") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
429 |
Map<? extends Object[], ? super Object[]> boundsObjectArray() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
430 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
431 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
432 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
433 |
@ExpectedSignature(descriptor = "voidMethod(java.awt.Frame)", signature = "(TT;)V") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
434 |
void voidMethod(T a) { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
435 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
436 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
437 |
@ExpectedSignature(descriptor = "byteMethod(java.awt.Frame)", signature = "(TT;)B") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
438 |
byte byteMethod(T a) { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
439 |
return 0; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
440 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
441 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
442 |
@ExpectedSignature(descriptor = "shortMethod(java.awt.Frame)", signature = "(TT;)S") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
443 |
short shortMethod(T a) { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
444 |
return 0; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
445 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
446 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
447 |
@ExpectedSignature(descriptor = "charMethod(java.awt.Frame)", signature = "(TT;)C") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
448 |
char charMethod(T a) { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
449 |
return 0; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
450 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
451 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
452 |
@ExpectedSignature(descriptor = "intMethod(java.awt.Frame)", signature = "(TT;)I") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
453 |
int intMethod(T a) { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
454 |
return 0; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
455 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
456 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
457 |
@ExpectedSignature(descriptor = "longMethod(java.awt.Frame)", signature = "(TT;)J") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
458 |
long longMethod(T a) { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
459 |
return 0; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
460 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
461 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
462 |
@ExpectedSignature(descriptor = "booleanMethod(java.awt.Frame)", signature = "(TT;)Z") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
463 |
boolean booleanMethod(T a) { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
464 |
return false; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
465 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
466 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
467 |
@ExpectedSignature(descriptor = "floatMethod(java.awt.Frame)", signature = "(TT;)F") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
468 |
float floatMethod(T a) { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
469 |
return 0; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
470 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
471 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
472 |
@ExpectedSignature(descriptor = "doubleMethod(java.awt.Frame)", signature = "(TT;)D") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
473 |
double doubleMethod(T a) { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
474 |
return 0; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
475 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
476 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
477 |
@ExpectedSignature(descriptor = "objectMethod(java.awt.Frame)", signature = "(TT;)Ljava/lang/Object;") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
478 |
Object objectMethod(T a) { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
479 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
480 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
481 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
482 |
@ExpectedSignature(descriptor = "staticVoidMethod(java.lang.Object)", signature = "<T:Ljava/lang/Object;>(TT;)V") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
483 |
static <T> void staticVoidMethod(T a) { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
484 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
485 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
486 |
@ExpectedSignature(descriptor = "staticByteMethod(java.lang.Object)", signature = "<T:Ljava/lang/Object;>(TT;)B") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
487 |
static <T> byte staticByteMethod(T a) { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
488 |
return 0; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
489 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
490 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
491 |
@ExpectedSignature(descriptor = "staticShortMethod(java.lang.Object)", signature = "<T:Ljava/lang/Object;>(TT;)S") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
492 |
static <T> short staticShortMethod(T a) { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
493 |
return 0; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
494 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
495 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
496 |
@ExpectedSignature(descriptor = "staticCharMethod(java.lang.Object)", signature = "<T:Ljava/lang/Object;>(TT;)C") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
497 |
static <T> char staticCharMethod(T a) { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
498 |
return 0; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
499 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
500 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
501 |
@ExpectedSignature(descriptor = "staticIntMethod(java.lang.Object)", signature = "<T:Ljava/lang/Object;>(TT;)I") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
502 |
static <T> int staticIntMethod(T a) { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
503 |
return 0; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
504 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
505 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
506 |
@ExpectedSignature(descriptor = "staticLongMethod(java.lang.Object)", signature = "<T:Ljava/lang/Object;>(TT;)J") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
507 |
static <T> long staticLongMethod(T a) { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
508 |
return 0; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
509 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
510 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
511 |
@ExpectedSignature(descriptor = "staticBooleanMethod(java.lang.Object)", signature = "<T:Ljava/lang/Object;>(TT;)Z") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
512 |
static <T> boolean staticBooleanMethod(T a) { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
513 |
return false; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
514 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
515 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
516 |
@ExpectedSignature(descriptor = "staticFloatMethod(java.lang.Object)", signature = "<T:Ljava/lang/Object;>(TT;)F") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
517 |
static <T> float staticFloatMethod(T a) { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
518 |
return 0; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
519 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
520 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
521 |
@ExpectedSignature(descriptor = "staticDoubleMethod(java.lang.Object)", signature = "<T:Ljava/lang/Object;>(TT;)D") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
522 |
static <T> double staticDoubleMethod(T a) { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
523 |
return 0; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
524 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
525 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
526 |
@ExpectedSignature(descriptor = "staticObjectMethod(java.lang.Object)", |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
527 |
signature = "<T:Ljava/lang/Object;>(TT;)Ljava/lang/Object;") |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
528 |
static <T> Object staticObjectMethod(T a) { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
529 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
530 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
531 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
532 |
void voidReturnTypeNoSignatureAttribute() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
533 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
534 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
535 |
byte byteReturnTypeNoSignatureAttribute() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
536 |
return 0; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
537 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
538 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
539 |
Object objectReturnNoSignatureAttribute() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
540 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
541 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
542 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
543 |
static void staticVoidReturnTypeNoSignatureAttribute() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
544 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
545 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
546 |
static byte staticByteReturnTypeNoSignatureAttribute() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
547 |
return 0; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
548 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
549 |
|
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
550 |
static Object staticObjectReturnTypeNoSignatureAttribute() { |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
551 |
return null; |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
552 |
} |
c03745b71c70
8049238: Implement classfile tests for Signature attribute
aeremeev
parents:
diff
changeset
|
553 |
} |