changeset 56892:512622f4dd81 records-and-sealed

Automatic merge with pattern-runtime
author mcimadamore
date Fri, 21 Jun 2019 19:30:18 +0200
parents 2140069460ec 96ad823df459
children 7d943bf13bf3
files
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/jdk/java/lang/lang-runtime/PatternHandleTest.java	Fri Jun 21 11:37:08 2019 -0400
+++ b/test/jdk/java/lang/lang-runtime/PatternHandleTest.java	Fri Jun 21 19:30:18 2019 +0200
@@ -118,6 +118,10 @@
         Object carrier;
         try {
             TryMatchInvoker inv = invokers.get(e.descriptor().returnType());
+            // @@@ temporary hack until we break out the assert-match machinery
+            if (inv == null)
+                inv = (MethodHandle mh, Object x) -> mh.invoke(x);
+            // @@@ end temporary hack
             carrier = inv.tryMatch(e.tryMatch(), target);
         }
         catch (Throwable t) {