Searched refs:TryFinally (Results 1 – 3 of 3) sorted by relevance
/libcore/ojluni/src/test/java/lang/invoke/ |
D | TryFinallyTest.java | 53 MethodHandle hello = MethodHandles.tryFinally(TryFinally.MH_greet, TryFinally.MH_exclaim); in testTryFinally() 54 assertEquals(TryFinally.MT_hello, hello.type()); in testTryFinally() 83 @Test(dataProvider = "tryFinallyArgs", expectedExceptions = TryFinally.T1.class) 85 … MethodHandle identity = TryFinally.MH_throwingTargetIdentity.asType(methodType(argType, argType)); in testTryFinallyException() 88 MethodHandles.dropArguments(identity, 0, TryFinally.T1.class)); in testTryFinallyException() 95 … MethodHandle tfVoid = MethodHandles.tryFinally(TryFinally.MH_print, TryFinally.MH_printMore); in testTryFinallyVoid() 96 assertEquals(TryFinally.MT_printHello, tfVoid.type()); in testTryFinallyVoid() 102 …MethodHandle helloMore = MethodHandles.tryFinally(TryFinally.MH_greetMore, TryFinally.MH_exclaimMo… in testTryFinallySublist() 103 assertEquals(TryFinally.MT_moreHello, helloMore.type()); in testTryFinallySublist() 109 MethodHandle c = TryFinally.MH_voidCleanup; in omitTrailingArguments() [all …]
|
/libcore/ojluni/src/main/java/java/lang/invoke/ |
D | Transformers.java | 214 static class TryFinally extends Transformer { class in Transformers 221 TryFinally(MethodHandle target, MethodHandle cleanup) { in TryFinally() method in Transformers.TryFinally
|
D | MethodHandles.java | 5626 return new Transformers.TryFinally(target.asFixedArity(), cleanup.asFixedArity()); in tryFinally()
|