Lines Matching refs:MethodType

25  * @summary unit tests for java.lang.invoke.MethodType
33 import java.lang.invoke.MethodType;
49 private MethodType mt_viS, mt_OO, mt_OO2, mt_vv, mt_Vv, mt_Ov;
50 private MethodType mt_iSI, mt_ISi, mt_ISI, mt_iSi;
51 private MethodType mt_viO, mt_iO2, mt_OOi, mt_iOi;
52 private MethodType mt_VIO, mt_IO2, mt_OOI, mt_IOI, mt_VIS;
53 private MethodType mt_vOiSzA, mt_OO99;
54 private MethodType[] GALLERY;
62 mt_viS = MethodType.methodType(void.class, int.class, String.class);
63 mt_OO = MethodType.methodType(Object.class, Object.class);
64 mt_OO2 = MethodType.methodType(Object.class, Object.class, Object.class);
65 mt_vv = MethodType.methodType(void.class);
66 mt_Vv = MethodType.methodType(Void.class);
67 mt_Ov = MethodType.methodType(Object.class);
68 mt_iSI = MethodType.methodType(int.class, String.class, Integer.class);
69 mt_ISi = MethodType.methodType(Integer.class, String.class, int.class);
70 mt_ISI = MethodType.methodType(Integer.class, String.class, Integer.class);
71 mt_iSi = MethodType.methodType(int.class, String.class, int.class);
75 mt_viO = MethodType.methodType(void.class, int.class, Object.class);
76 mt_iO2 = MethodType.methodType(int.class, Object.class, Object.class);
77 mt_OOi = MethodType.methodType(Object.class, Object.class, int.class);
78 mt_iOi = MethodType.methodType(int.class, Object.class, int.class);
80 mt_VIO = MethodType.methodType(Void.class, Integer.class, Object.class);
81 mt_IO2 = MethodType.methodType(Integer.class, Object.class, Object.class);
82 mt_OOI = MethodType.methodType(Object.class, Object.class, Integer.class);
83 mt_IOI = MethodType.methodType(Integer.class, Object.class, Integer.class);
84 mt_VIS = MethodType.methodType(Void.class, Integer.class, String.class);
86 mt_vOiSzA = MethodType.methodType(void.class, Object.class, int.class, String.class, boolean.class, Object[].class);
87 mt_OO99 = MethodType.genericMethodType(99);
89 GALLERY = new MethodType[] {
105 List<MethodType> gallery2 = new ArrayList<>();
106 for (MethodType mt : GALLERY) {
115 * Test of make method, of class MethodType.
120 MethodType result = MethodType.methodType(rtype, ptypes);
125 * Test of make method, of class MethodType.
130 MethodType result = MethodType.methodType(rtype, Arrays.asList(ptypes));
135 * Test of make method, of class MethodType.
140 MethodType result = MethodType.methodType(rtype, ptypes[0], ptypes[1]);
145 * Test of make method, of class MethodType.
151 MethodType expResult = MethodType.methodType(rt, new Class<?>[0]);
152 MethodType result = MethodType.methodType(rt);
160 MethodType expResult = mt_OO2;
161 MethodType result = MethodType.genericMethodType(objectArgCount);
166 * Test of make method, of class MethodType.
170 System.out.println("make (from rtype, MethodType)");
171 MethodType expResult = mt_iO2;
172 MethodType result = MethodType.methodType(int.class, mt_IO2);
177 * Test of make method, of class MethodType.
183 MethodType[] instances = {mt_viS, mt_OO2, mt_vv, mt_Ov, mt_iSI, mt_ISi, mt_ISI, mt_iSi};
196 MethodType instance = instances[i];
199 MethodType parsed = MethodType.fromMethodDescriptorString(result, loader);
224 MethodType[] instances = {mt_viS, mt_OO2, mt_vv, mt_Ov, mt_iSI, mt_ISi, mt_ISI, mt_iSi};
235 MethodType[] instances = {mt_viS, mt_OO2, mt_vv, mt_Ov, mt_iSI, mt_ISi, mt_ISI, mt_iSi};
247 MethodType[] instances = {mt_viS, mt_OO2, mt_vv, mt_Ov, mt_iSI, mt_ISi, mt_ISI, mt_iSi};
248 MethodType[] expResults = {mt_viO, mt_OO2, mt_vv, mt_Ov, mt_iO2, mt_OOi, mt_OO2, mt_iOi};
250 MethodType result = instances[i].erase();
258 MethodType[] instances = {mt_viS, mt_OO2, mt_vv, mt_Ov, mt_iSI, mt_ISi, mt_ISI, mt_iSi};
259 MethodType[] expResults = {mt_OO2, mt_OO2, mt_Ov, mt_Ov, mt_OO2, mt_OO2, mt_OO2, mt_OO2};
261 MethodType result = instances[i].generic();
269 MethodType[] instances = {mt_viS, mt_OO2, mt_vv, mt_Ov, mt_iSI, mt_ISi, mt_ISI, mt_iSi};
270 MethodType[] expResults = {mt_VIS, mt_OO2, mt_Vv, mt_Ov, mt_ISI, mt_ISI, mt_ISI, mt_ISI};
272 MethodType result = instances[i].wrap();
280 MethodType[] instances = {mt_viS, mt_OO2, mt_vv, mt_Ov, mt_iSI, mt_ISi, mt_ISI, mt_iSi};
281 MethodType[] expResults = {mt_viS, mt_OO2, mt_vv, mt_Ov, mt_iSi, mt_iSi, mt_iSi, mt_iSi};
283 MethodType result = instances[i].unwrap();
289 * Test of parameterType method, of class MethodType.
295 MethodType instance = mt_viS;
303 * Test of parameterCount method, of class MethodType.
308 MethodType instance = mt_viS;
315 * Test of returnType method, of class MethodType.
320 MethodType instance = mt_viS;
327 * Test of parameterList method, of class MethodType.
332 MethodType instance = mt_viS;
339 * Test of parameterArray method, of class MethodType.
344 MethodType instance = mt_viS;
351 * Test of equals method, of class MethodType.
357 MethodType instance = mt_viS;
364 * Test of equals method, of class MethodType.
369 MethodType that = mt_viS;
370 MethodType instance = mt_viS;
377 * Test of hashCode method, of class MethodType.
382 MethodType instance = mt_viS;
392 * Test of toString method, of class MethodType.
397 MethodType[] instances = {mt_viS, mt_OO2, mt_vv, mt_Ov, mt_iSI, mt_ISi, mt_ISI, mt_iSi};
410 MethodType instance = instances[i];
444 for (MethodType mt : GALLERY) {
454 for (MethodType mt : GALLERY) {
539 MethodType mt = (MethodType) c[0];