changeset 50735:fc28ca68554e jep-334

add test for MethodHandleDesc::ofConstructor in MethodHandleRefTest
author vromero
date Thu, 24 May 2018 08:09:36 -0700
parents affc14961831
children ed6fdf96e5fa
files test/jdk/java/lang/invoke/constant/MethodHandleRefTest.java
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/jdk/java/lang/invoke/constant/MethodHandleRefTest.java	Thu May 24 07:35:06 2018 -0700
+++ b/test/jdk/java/lang/invoke/constant/MethodHandleRefTest.java	Thu May 24 08:09:36 2018 -0700
@@ -114,6 +114,8 @@
                             LOOKUP.findVirtual(List.class, "isEmpty", MethodType.fromMethodDescriptorString("()Z", null)));
         testMethodHandleRef(MethodHandleDesc.of(MethodHandleDesc.Kind.CONSTRUCTOR, ClassDesc.of("java.util.ArrayList"), "<init>", CR_void),
                             LOOKUP.findConstructor(ArrayList.class, MethodType.methodType(void.class)));
+        testMethodHandleRef(MethodHandleDesc.ofConstructor(ClassDesc.of("java.util.ArrayList")),
+                            LOOKUP.findConstructor(ArrayList.class, MethodType.methodType(void.class)));
     }
 
     public void testAsType() throws Throwable {