Lines Matching defs:to

16  * 2 along with this work; if not, write to the Free Software Foundation,
85 * Dummy method used in {@link #testVarargsCollector} test to form a method
111 * Tests that null wrapper reference is successfully converted to primitive
116 for (Wrapper to : Wrapper.values()) {
117 if (from == Wrapper.VOID || to == Wrapper.VOID) {
125 to.primitiveType(), null, to.zero(), false, null);
132 * Tests that non-null wrapper reference is successfully converted to
137 for (Wrapper to : Wrapper.values()) {
138 if (from == Wrapper.VOID || to == Wrapper.VOID
139 || to == Wrapper.OBJECT) {
145 Object convValue = to.wrap(value);
147 to.primitiveType(), value, convValue, false, null);
150 to.primitiveType(), value, null,
159 * Tests that primitive is successfully converted to wrapper reference
160 * types, to the Number type (if possible) and to the Object type.
164 for (Wrapper to : Wrapper.values()) {
166 || to == Wrapper.VOID || to == Wrapper.OBJECT) {
171 if (from == to) {
173 to.wrapperType(), value, value, false, null);
176 to.wrapperType(), value, null, true, ClassCastException.class);
194 * Tests that primitive is successfully converted to other primitive type.
198 for (Wrapper to : Wrapper.values()) {
199 if (from == Wrapper.VOID || to == Wrapper.VOID
200 || from == Wrapper.OBJECT || to == Wrapper.OBJECT) {
204 Object convValue = to.wrap(value);
207 to.primitiveType(), value, convValue, false, null);
234 * Tests non-bootclasspath reference to reference conversions.
252 // Child type to parent type non-null conversion, shoud succeed
255 // Child type to parent type null conversion, shoud succeed
258 // Parent type to child type non-null conversion with parent
262 // Parent type to child type non-null conversion with child
266 // Parent type to child type null conversion, should succeed
270 // Parent type to child type non-null conversion with sibling
307 * Tests non-bootclasspath reference to bootclasspath reference conversions
324 // Child type to parent type non-null conversion, shoud succeed
327 // Child type to parent type null conversion, shoud succeed
330 // Parent type to child type non-null conversion with parent
334 // Parent type to child type non-null conversion with child
338 // Parent type to child type null conversion, should succeed
342 // Parent type to child type non-null conversion with
348 // Non-bcp class to bcp/non-bcp sibling class non-null
352 // Non-bcp class to bcp/non-bcp sibling class null conversion,
356 // Non-bcp interface to bcp/non-bcp sibling class non-null
360 // Non-bcp interface to bcp/non-bcp sibling class
364 // Non-bcp interface to bcp/non-bcp sibling class non-null
374 * Tests bootclasspath reference to reference conversions.
386 // Child type to parent type non-null conversion, shoud succeed
389 // Child type to parent type null conversion, shoud succeed
392 // Parent type to child type non-null conversion with child
396 // Parent type to child type null conversion, should succeed
407 // Parent type to child type non-null conversion with sibling
416 * {@link #testReturnVoid2Any} tests to form a method handle.
421 * Tests that non-null any return is successfully converted to non-type
436 * Tests that void return is successfully converted to primitive and
440 for (Wrapper to : Wrapper.values()) {
442 to.primitiveType(), null,
443 to.zero(), false, null);
445 to.wrapperType(), null,
511 * @param to - destination type.
512 * @param param - value to be converted.
519 Class<?> from, Class<?> to, Object param,
525 to.getSimpleName(), param);
542 newType = original.type().changeReturnType(to);
545 if (from.equals(void.class) || to.equals(void.class)) {
549 original = MethodHandles.identity(to);
577 + " to the expected result %10s",
596 from, to, param);
608 + " %s => %s; parameter: %s", from, to, param);