Home
last modified time | relevance | path

Searched refs:invokeExact (Results 1 – 25 of 54) sorted by relevance

123

/libcore/ojluni/src/test/java/lang/invoke/VarHandles/
DVarHandleTestMethodHandleAccessChar.java127 hs.get(TestAccessMode.SET).invokeExact(recv, '\u0123'); in testInstanceField()
128 char x = (char) hs.get(TestAccessMode.GET).invokeExact(recv); in testInstanceField()
135 hs.get(TestAccessMode.SET_VOLATILE).invokeExact(recv, '\u4567'); in testInstanceField()
136 char x = (char) hs.get(TestAccessMode.GET_VOLATILE).invokeExact(recv); in testInstanceField()
142 hs.get(TestAccessMode.SET_RELEASE).invokeExact(recv, '\u0123'); in testInstanceField()
143 char x = (char) hs.get(TestAccessMode.GET_ACQUIRE).invokeExact(recv); in testInstanceField()
149 hs.get(TestAccessMode.SET_OPAQUE).invokeExact(recv, '\u4567'); in testInstanceField()
150 char x = (char) hs.get(TestAccessMode.GET_OPAQUE).invokeExact(recv); in testInstanceField()
154 hs.get(TestAccessMode.SET).invokeExact(recv, '\u0123'); in testInstanceField()
158 …boolean r = (boolean) hs.get(TestAccessMode.COMPARE_AND_SET).invokeExact(recv, '\u0123', '\u4567'); in testInstanceField()
[all …]
DVarHandleTestMethodHandleAccessByte.java127 hs.get(TestAccessMode.SET).invokeExact(recv, (byte)0x01); in testInstanceField()
128 byte x = (byte) hs.get(TestAccessMode.GET).invokeExact(recv); in testInstanceField()
135 hs.get(TestAccessMode.SET_VOLATILE).invokeExact(recv, (byte)0x23); in testInstanceField()
136 byte x = (byte) hs.get(TestAccessMode.GET_VOLATILE).invokeExact(recv); in testInstanceField()
142 hs.get(TestAccessMode.SET_RELEASE).invokeExact(recv, (byte)0x01); in testInstanceField()
143 byte x = (byte) hs.get(TestAccessMode.GET_ACQUIRE).invokeExact(recv); in testInstanceField()
149 hs.get(TestAccessMode.SET_OPAQUE).invokeExact(recv, (byte)0x23); in testInstanceField()
150 byte x = (byte) hs.get(TestAccessMode.GET_OPAQUE).invokeExact(recv); in testInstanceField()
154 hs.get(TestAccessMode.SET).invokeExact(recv, (byte)0x01); in testInstanceField()
158 …boolean r = (boolean) hs.get(TestAccessMode.COMPARE_AND_SET).invokeExact(recv, (byte)0x01, (byte)0… in testInstanceField()
[all …]
DVarHandleTestMethodHandleAccessShort.java127 hs.get(TestAccessMode.SET).invokeExact(recv, (short)0x0123); in testInstanceField()
128 short x = (short) hs.get(TestAccessMode.GET).invokeExact(recv); in testInstanceField()
135 hs.get(TestAccessMode.SET_VOLATILE).invokeExact(recv, (short)0x4567); in testInstanceField()
136 short x = (short) hs.get(TestAccessMode.GET_VOLATILE).invokeExact(recv); in testInstanceField()
142 hs.get(TestAccessMode.SET_RELEASE).invokeExact(recv, (short)0x0123); in testInstanceField()
143 short x = (short) hs.get(TestAccessMode.GET_ACQUIRE).invokeExact(recv); in testInstanceField()
149 hs.get(TestAccessMode.SET_OPAQUE).invokeExact(recv, (short)0x4567); in testInstanceField()
150 short x = (short) hs.get(TestAccessMode.GET_OPAQUE).invokeExact(recv); in testInstanceField()
154 hs.get(TestAccessMode.SET).invokeExact(recv, (short)0x0123); in testInstanceField()
158 …boolean r = (boolean) hs.get(TestAccessMode.COMPARE_AND_SET).invokeExact(recv, (short)0x0123, (sho… in testInstanceField()
[all …]
DVarHandleTestMethodHandleAccessLong.java127 hs.get(TestAccessMode.SET).invokeExact(recv, 0x0123456789ABCDEFL); in testInstanceField()
128 long x = (long) hs.get(TestAccessMode.GET).invokeExact(recv); in testInstanceField()
135 hs.get(TestAccessMode.SET_VOLATILE).invokeExact(recv, 0xCAFEBABECAFEBABEL); in testInstanceField()
136 long x = (long) hs.get(TestAccessMode.GET_VOLATILE).invokeExact(recv); in testInstanceField()
142 hs.get(TestAccessMode.SET_RELEASE).invokeExact(recv, 0x0123456789ABCDEFL); in testInstanceField()
143 long x = (long) hs.get(TestAccessMode.GET_ACQUIRE).invokeExact(recv); in testInstanceField()
149 hs.get(TestAccessMode.SET_OPAQUE).invokeExact(recv, 0xCAFEBABECAFEBABEL); in testInstanceField()
150 long x = (long) hs.get(TestAccessMode.GET_OPAQUE).invokeExact(recv); in testInstanceField()
154 hs.get(TestAccessMode.SET).invokeExact(recv, 0x0123456789ABCDEFL); in testInstanceField()
158 …boolean r = (boolean) hs.get(TestAccessMode.COMPARE_AND_SET).invokeExact(recv, 0x0123456789ABCDEFL… in testInstanceField()
[all …]
DVarHandleTestMethodHandleAccessInt.java127 hs.get(TestAccessMode.SET).invokeExact(recv, 0x01234567); in testInstanceField()
128 int x = (int) hs.get(TestAccessMode.GET).invokeExact(recv); in testInstanceField()
135 hs.get(TestAccessMode.SET_VOLATILE).invokeExact(recv, 0x89ABCDEF); in testInstanceField()
136 int x = (int) hs.get(TestAccessMode.GET_VOLATILE).invokeExact(recv); in testInstanceField()
142 hs.get(TestAccessMode.SET_RELEASE).invokeExact(recv, 0x01234567); in testInstanceField()
143 int x = (int) hs.get(TestAccessMode.GET_ACQUIRE).invokeExact(recv); in testInstanceField()
149 hs.get(TestAccessMode.SET_OPAQUE).invokeExact(recv, 0x89ABCDEF); in testInstanceField()
150 int x = (int) hs.get(TestAccessMode.GET_OPAQUE).invokeExact(recv); in testInstanceField()
154 hs.get(TestAccessMode.SET).invokeExact(recv, 0x01234567); in testInstanceField()
158 …boolean r = (boolean) hs.get(TestAccessMode.COMPARE_AND_SET).invokeExact(recv, 0x01234567, 0x89ABC… in testInstanceField()
[all …]
DVarHandleTestMethodHandleAccessBoolean.java127 hs.get(TestAccessMode.SET).invokeExact(recv, true); in testInstanceField()
128 boolean x = (boolean) hs.get(TestAccessMode.GET).invokeExact(recv); in testInstanceField()
135 hs.get(TestAccessMode.SET_VOLATILE).invokeExact(recv, false); in testInstanceField()
136 boolean x = (boolean) hs.get(TestAccessMode.GET_VOLATILE).invokeExact(recv); in testInstanceField()
142 hs.get(TestAccessMode.SET_RELEASE).invokeExact(recv, true); in testInstanceField()
143 boolean x = (boolean) hs.get(TestAccessMode.GET_ACQUIRE).invokeExact(recv); in testInstanceField()
149 hs.get(TestAccessMode.SET_OPAQUE).invokeExact(recv, false); in testInstanceField()
150 boolean x = (boolean) hs.get(TestAccessMode.GET_OPAQUE).invokeExact(recv); in testInstanceField()
154 hs.get(TestAccessMode.SET).invokeExact(recv, true); in testInstanceField()
158 … boolean r = (boolean) hs.get(TestAccessMode.COMPARE_AND_SET).invokeExact(recv, true, false); in testInstanceField()
[all …]
DVarHandleTestMethodHandleAccessDouble.java127 hs.get(TestAccessMode.SET).invokeExact(recv, 1.0d); in testInstanceField()
128 double x = (double) hs.get(TestAccessMode.GET).invokeExact(recv); in testInstanceField()
135 hs.get(TestAccessMode.SET_VOLATILE).invokeExact(recv, 2.0d); in testInstanceField()
136 double x = (double) hs.get(TestAccessMode.GET_VOLATILE).invokeExact(recv); in testInstanceField()
142 hs.get(TestAccessMode.SET_RELEASE).invokeExact(recv, 1.0d); in testInstanceField()
143 double x = (double) hs.get(TestAccessMode.GET_ACQUIRE).invokeExact(recv); in testInstanceField()
149 hs.get(TestAccessMode.SET_OPAQUE).invokeExact(recv, 2.0d); in testInstanceField()
150 double x = (double) hs.get(TestAccessMode.GET_OPAQUE).invokeExact(recv); in testInstanceField()
154 hs.get(TestAccessMode.SET).invokeExact(recv, 1.0d); in testInstanceField()
158 … boolean r = (boolean) hs.get(TestAccessMode.COMPARE_AND_SET).invokeExact(recv, 1.0d, 2.0d); in testInstanceField()
[all …]
DVarHandleTestMethodHandleAccessFloat.java127 hs.get(TestAccessMode.SET).invokeExact(recv, 1.0f); in testInstanceField()
128 float x = (float) hs.get(TestAccessMode.GET).invokeExact(recv); in testInstanceField()
135 hs.get(TestAccessMode.SET_VOLATILE).invokeExact(recv, 2.0f); in testInstanceField()
136 float x = (float) hs.get(TestAccessMode.GET_VOLATILE).invokeExact(recv); in testInstanceField()
142 hs.get(TestAccessMode.SET_RELEASE).invokeExact(recv, 1.0f); in testInstanceField()
143 float x = (float) hs.get(TestAccessMode.GET_ACQUIRE).invokeExact(recv); in testInstanceField()
149 hs.get(TestAccessMode.SET_OPAQUE).invokeExact(recv, 2.0f); in testInstanceField()
150 float x = (float) hs.get(TestAccessMode.GET_OPAQUE).invokeExact(recv); in testInstanceField()
154 hs.get(TestAccessMode.SET).invokeExact(recv, 1.0f); in testInstanceField()
158 … boolean r = (boolean) hs.get(TestAccessMode.COMPARE_AND_SET).invokeExact(recv, 1.0f, 2.0f); in testInstanceField()
[all …]
DVarHandleTestMethodHandleAccessString.java127 hs.get(TestAccessMode.SET).invokeExact(recv, "foo"); in testInstanceField()
128 String x = (String) hs.get(TestAccessMode.GET).invokeExact(recv); in testInstanceField()
135 hs.get(TestAccessMode.SET_VOLATILE).invokeExact(recv, "bar"); in testInstanceField()
136 String x = (String) hs.get(TestAccessMode.GET_VOLATILE).invokeExact(recv); in testInstanceField()
142 hs.get(TestAccessMode.SET_RELEASE).invokeExact(recv, "foo"); in testInstanceField()
143 String x = (String) hs.get(TestAccessMode.GET_ACQUIRE).invokeExact(recv); in testInstanceField()
149 hs.get(TestAccessMode.SET_OPAQUE).invokeExact(recv, "bar"); in testInstanceField()
150 String x = (String) hs.get(TestAccessMode.GET_OPAQUE).invokeExact(recv); in testInstanceField()
154 hs.get(TestAccessMode.SET).invokeExact(recv, "foo"); in testInstanceField()
158 … boolean r = (boolean) hs.get(TestAccessMode.COMPARE_AND_SET).invokeExact(recv, "foo", "bar"); in testInstanceField()
[all …]
DX-VarHandleTestMethodHandleAccess.java.template127 hs.get(TestAccessMode.SET).invokeExact(recv, $value1$);
128 $type$ x = ($type$) hs.get(TestAccessMode.GET).invokeExact(recv);
135 hs.get(TestAccessMode.SET_VOLATILE).invokeExact(recv, $value2$);
136 $type$ x = ($type$) hs.get(TestAccessMode.GET_VOLATILE).invokeExact(recv);
142 hs.get(TestAccessMode.SET_RELEASE).invokeExact(recv, $value1$);
143 $type$ x = ($type$) hs.get(TestAccessMode.GET_ACQUIRE).invokeExact(recv);
149 hs.get(TestAccessMode.SET_OPAQUE).invokeExact(recv, $value2$);
150 $type$ x = ($type$) hs.get(TestAccessMode.GET_OPAQUE).invokeExact(recv);
155 hs.get(TestAccessMode.SET).invokeExact(recv, $value1$);
159 …boolean r = (boolean) hs.get(TestAccessMode.COMPARE_AND_SET).invokeExact(recv, $value1$, $value2$);
[all …]
DVarHandleTestMethodTypeDouble.java740 invokeExact((VarHandleTestMethodTypeDouble) null); in testInstanceFieldWrongMethodType()
744 invokeExact(Void.class); in testInstanceFieldWrongMethodType()
748 invokeExact(0); in testInstanceFieldWrongMethodType()
753 invokeExact(recv); in testInstanceFieldWrongMethodType()
757 invokeExact(recv); in testInstanceFieldWrongMethodType()
762 invokeExact(); in testInstanceFieldWrongMethodType()
766 invokeExact(recv, Void.class); in testInstanceFieldWrongMethodType()
774 invokeExact((VarHandleTestMethodTypeDouble) null, 1.0d); in testInstanceFieldWrongMethodType()
778 invokeExact(Void.class, 1.0d); in testInstanceFieldWrongMethodType()
782 invokeExact(recv, Void.class); in testInstanceFieldWrongMethodType()
[all …]
DVarHandleTestMethodTypeFloat.java740 invokeExact((VarHandleTestMethodTypeFloat) null); in testInstanceFieldWrongMethodType()
744 invokeExact(Void.class); in testInstanceFieldWrongMethodType()
748 invokeExact(0); in testInstanceFieldWrongMethodType()
753 invokeExact(recv); in testInstanceFieldWrongMethodType()
757 invokeExact(recv); in testInstanceFieldWrongMethodType()
762 invokeExact(); in testInstanceFieldWrongMethodType()
766 invokeExact(recv, Void.class); in testInstanceFieldWrongMethodType()
774 invokeExact((VarHandleTestMethodTypeFloat) null, 1.0f); in testInstanceFieldWrongMethodType()
778 invokeExact(Void.class, 1.0f); in testInstanceFieldWrongMethodType()
782 invokeExact(recv, Void.class); in testInstanceFieldWrongMethodType()
[all …]
DVarHandleTestMethodTypeLong.java1008 invokeExact((VarHandleTestMethodTypeLong) null); in testInstanceFieldWrongMethodType()
1012 invokeExact(Void.class); in testInstanceFieldWrongMethodType()
1016 invokeExact(0); in testInstanceFieldWrongMethodType()
1021 invokeExact(recv); in testInstanceFieldWrongMethodType()
1025 invokeExact(recv); in testInstanceFieldWrongMethodType()
1030 invokeExact(); in testInstanceFieldWrongMethodType()
1034 invokeExact(recv, Void.class); in testInstanceFieldWrongMethodType()
1042 invokeExact((VarHandleTestMethodTypeLong) null, 0x0123456789ABCDEFL); in testInstanceFieldWrongMethodType()
1046 invokeExact(Void.class, 0x0123456789ABCDEFL); in testInstanceFieldWrongMethodType()
1050 invokeExact(recv, Void.class); in testInstanceFieldWrongMethodType()
[all …]
DVarHandleTestMethodTypeInt.java1008 invokeExact((VarHandleTestMethodTypeInt) null); in testInstanceFieldWrongMethodType()
1012 invokeExact(Void.class); in testInstanceFieldWrongMethodType()
1016 invokeExact(0); in testInstanceFieldWrongMethodType()
1021 invokeExact(recv); in testInstanceFieldWrongMethodType()
1025 invokeExact(recv); in testInstanceFieldWrongMethodType()
1030 invokeExact(); in testInstanceFieldWrongMethodType()
1034 invokeExact(recv, Void.class); in testInstanceFieldWrongMethodType()
1042 invokeExact((VarHandleTestMethodTypeInt) null, 0x01234567); in testInstanceFieldWrongMethodType()
1046 invokeExact(Void.class, 0x01234567); in testInstanceFieldWrongMethodType()
1050 invokeExact(recv, Void.class); in testInstanceFieldWrongMethodType()
[all …]
DVarHandleTestMethodTypeByte.java1008 invokeExact((VarHandleTestMethodTypeByte) null); in testInstanceFieldWrongMethodType()
1012 invokeExact(Void.class); in testInstanceFieldWrongMethodType()
1016 invokeExact(0); in testInstanceFieldWrongMethodType()
1021 invokeExact(recv); in testInstanceFieldWrongMethodType()
1025 invokeExact(recv); in testInstanceFieldWrongMethodType()
1030 invokeExact(); in testInstanceFieldWrongMethodType()
1034 invokeExact(recv, Void.class); in testInstanceFieldWrongMethodType()
1042 invokeExact((VarHandleTestMethodTypeByte) null, (byte)0x01); in testInstanceFieldWrongMethodType()
1046 invokeExact(Void.class, (byte)0x01); in testInstanceFieldWrongMethodType()
1050 invokeExact(recv, Void.class); in testInstanceFieldWrongMethodType()
[all …]
DVarHandleTestMethodTypeShort.java1008 invokeExact((VarHandleTestMethodTypeShort) null); in testInstanceFieldWrongMethodType()
1012 invokeExact(Void.class); in testInstanceFieldWrongMethodType()
1016 invokeExact(0); in testInstanceFieldWrongMethodType()
1021 invokeExact(recv); in testInstanceFieldWrongMethodType()
1025 invokeExact(recv); in testInstanceFieldWrongMethodType()
1030 invokeExact(); in testInstanceFieldWrongMethodType()
1034 invokeExact(recv, Void.class); in testInstanceFieldWrongMethodType()
1042 invokeExact((VarHandleTestMethodTypeShort) null, (short)0x0123); in testInstanceFieldWrongMethodType()
1046 invokeExact(Void.class, (short)0x0123); in testInstanceFieldWrongMethodType()
1050 invokeExact(recv, Void.class); in testInstanceFieldWrongMethodType()
[all …]
DVarHandleTestMethodTypeChar.java1008 invokeExact((VarHandleTestMethodTypeChar) null); in testInstanceFieldWrongMethodType()
1012 invokeExact(Void.class); in testInstanceFieldWrongMethodType()
1016 invokeExact(0); in testInstanceFieldWrongMethodType()
1021 invokeExact(recv); in testInstanceFieldWrongMethodType()
1025 invokeExact(recv); in testInstanceFieldWrongMethodType()
1030 invokeExact(); in testInstanceFieldWrongMethodType()
1034 invokeExact(recv, Void.class); in testInstanceFieldWrongMethodType()
1042 invokeExact((VarHandleTestMethodTypeChar) null, '\u0123'); in testInstanceFieldWrongMethodType()
1046 invokeExact(Void.class, '\u0123'); in testInstanceFieldWrongMethodType()
1050 invokeExact(recv, Void.class); in testInstanceFieldWrongMethodType()
[all …]
DVarHandleTestMethodTypeBoolean.java922 invokeExact((VarHandleTestMethodTypeBoolean) null); in testInstanceFieldWrongMethodType()
926 invokeExact(Void.class); in testInstanceFieldWrongMethodType()
930 invokeExact(0); in testInstanceFieldWrongMethodType()
935 invokeExact(recv); in testInstanceFieldWrongMethodType()
939 invokeExact(recv); in testInstanceFieldWrongMethodType()
944 invokeExact(); in testInstanceFieldWrongMethodType()
948 invokeExact(recv, Void.class); in testInstanceFieldWrongMethodType()
956 invokeExact((VarHandleTestMethodTypeBoolean) null, true); in testInstanceFieldWrongMethodType()
960 invokeExact(Void.class, true); in testInstanceFieldWrongMethodType()
964 invokeExact(recv, Void.class); in testInstanceFieldWrongMethodType()
[all …]
DVarHandleTestMethodTypeString.java654 invokeExact((VarHandleTestMethodTypeString) null); in testInstanceFieldWrongMethodType()
658 invokeExact(Void.class); in testInstanceFieldWrongMethodType()
662 invokeExact(0); in testInstanceFieldWrongMethodType()
667 invokeExact(recv); in testInstanceFieldWrongMethodType()
671 invokeExact(recv); in testInstanceFieldWrongMethodType()
676 invokeExact(); in testInstanceFieldWrongMethodType()
680 invokeExact(recv, Void.class); in testInstanceFieldWrongMethodType()
688 invokeExact((VarHandleTestMethodTypeString) null, "foo"); in testInstanceFieldWrongMethodType()
692 invokeExact(Void.class, "foo"); in testInstanceFieldWrongMethodType()
696 invokeExact(recv, Void.class); in testInstanceFieldWrongMethodType()
[all …]
/libcore/luni/src/test/java/libcore/java/lang/invoke/
DExplicitCastArgumentsTest.java153 Child c = (Child) mh.invokeExact(new Parent()); in explicitCastArgumentParentToChild()
161 Child c = (Child) mh.invokeExact((Parent) null); in explicitCastArgumentNullParentToChild()
168 Parent p = (Parent) mh.invokeExact(new Child()); in explicitCastArgumentChildToParent()
175 Parent p = (Parent) mh.invokeExact((Child) null); in explicitCastArgumentNullChildToParent()
182 Child c = (Child) mh.invokeExact((Parent) null); in explicitCastReturnValueNullParentToChild()
190 Child c = (Child) mh.invokeExact(new Parent()); in explicitCastReturnValueParentToChild()
198 Parent p = (Parent) mh.invokeExact((Child) null); in explicitCastReturnValueNullChildToParent()
205 Parent x = (Parent) mh.invokeExact(new Child()); in explicitCastReturnValueChildToParent()
212 ParentInterface pi = (ParentInterface) mh.invokeExact(new Parent()); in explicitCastArgumentOfInterfaceType_doesNotThrow()
214 pi = (ParentInterface) mh.invokeExact((Parent) null); in explicitCastArgumentOfInterfaceType_doesNotThrow()
[all …]
DCallSitesTest.java50 int n = (int) site.dynamicInvoker().invokeExact(7, 37); in test_ConstantCallSite()
103 int result = (int) callSite.getTarget().invokeExact(1, 2); in test_MutableCallsiteNoMethodHandle()
114 int n = (int) site.getTarget().invokeExact(7, 37); in test_MutableCallSite()
137 n = (int) site.getTarget().invokeExact(7, 37); in test_MutableCallSite()
161 int result = (int) vc.getTarget().invokeExact(1, 2); in test_VolatileCallsiteNoMethodHandle()
172 int n = (int) site.getTarget().invokeExact(7, 37); in test_VolatileCallSite()
196 n = (int) site.getTarget().invokeExact(7, 37); in test_VolatileCallSite()
221 int fake = (int) site.getTarget().invokeExact(1, 1); in test_LateBoundMutableCallSite()
237 int fake = (int) site.getTarget().invokeExact(1, 1); in test_LateBoundVolatileCallSite()
253 int x = (int) firstTarget.invokeExact(2, 6); in commonMutableCallSitesTest()
[all …]
DMethodHandleAccessorsTest.java79 m.invokeExact(value); in setByte()
82 m.invokeExact(v, value); in setByte()
101 got = (byte)m.invokeExact(); in getByte()
103 got = (byte)m.invokeExact(v); in getByte()
122 m.invokeExact(value); in setChar()
125 m.invokeExact(v, value); in setChar()
144 got = (char)m.invokeExact(); in getChar()
146 got = (char)m.invokeExact(v); in getChar()
165 m.invokeExact(value); in setShort()
168 m.invokeExact(v, value); in setShort()
[all …]
DMethodHandleCombinersTest.java68 transform.invokeExact("foo", 42l); in testDropArguments()
73 transform.invokeExact(45, new Object(), "foo", 42l); in testDropArguments()
78 transform.invokeExact("foo", 45, new Object(), 42l); in testDropArguments()
83 transform.invokeExact("foo", 42l, 45, new Object()); in testDropArguments()
101 transform.invokeExact((short) 45, new Object(), "foo", 42l); in testDropArguments()
132 transform.invokeExact(45, new Object(), "foo", 42l); in testDropArguments_List()
138 transform.invokeExact((short) 45, new Object(), "foo", 42l); in testDropArguments_List()
192 returnVal = (String) adapter.invokeExact("foo", 42l, (String) null); in testCatchException()
199 returnVal = (String) adapter.invokeExact("foo", 42l, "exceptionMessage"); in testCatchException()
210 returnVal = (String) adapter.invokeExact("foo", 42l, "exceptionMessage"); in testCatchException()
[all …]
/libcore/ojluni/src/test/java/lang/invoke/
DJavaDocExamplesTest.java117 assertEquals("xy", (String) CONCAT_2.invokeExact("x", "y")); in testMisc()
118 assertEquals("xy", (String) CONCAT_3.invokeExact("x", "y")); in testMisc()
120 assertEquals("xy".hashCode(), (int) HASHCODE_2.invokeExact((Object)"xy")); in testMisc()
121 assertEquals("xy".hashCode(), (int) HASHCODE_3.invokeExact((Object)"xy")); in testMisc()
141 assertEquals("xy", (String) MH_concat.invokeExact("x", "y")); in testFindVirtual()
142 assertEquals("xy".hashCode(), (int) MH_hashCode.invokeExact((Object)"xy")); in testFindVirtual()
143 assertEquals("xy".hashCode(), (int) MH_hashCode_String.invokeExact("xy")); in testFindVirtual()
155 assertEquals("", (String) MH_newString.invokeExact()); in testFindVirtual()
164 Collection copy = (ArrayList) MH_newArrayList.invokeExact(orig); in testFindConstructor()
223 assert((int)rsub.invokeExact(1, 100) == 99); in testPermuteArguments()
[all …]
DRicochetTest.java103 …Object res = list8ints.invokeExact(ints[0], ints[1], ints[2], ints[3], ints[4], ints[5], ints[6], … in testFilterReturnValue()
106 …res = idreturn.invokeExact(ints[0], ints[1], ints[2], ints[3], ints[4], ints[5], ints[6], ints[7]); in testFilterReturnValue()
150 int[] args1 = (int[]) id.invokeExact(args); in testIntSpreads()
155 case 0: args2 = (int[]) coll.invokeExact(); break; in testIntSpreads()
156 case 1: args2 = (int[]) coll.invokeExact(args[0]); break; in testIntSpreads()
157 case 2: args2 = (int[]) coll.invokeExact(args[0], args[1]); break; in testIntSpreads()
158 case 3: args2 = (int[]) coll.invokeExact(args[0], args[1], args[2]); break; in testIntSpreads()
159 … case 4: args2 = (int[]) coll.invokeExact(args[0], args[1], args[2], args[3]); break; in testIntSpreads()
160 … case 5: args2 = (int[]) coll.invokeExact(args[0], args[1], args[2], args[3], args[4]); break; in testIntSpreads()
164 int[] args3 = (int[]) mh.invokeExact(args); in testIntSpreads()
[all …]

123