changeset 50429:11750f5c28cb condy-folding

fixing regression unit tests
author vromero
date Mon, 30 Apr 2018 09:46:37 -0700
parents 8c9aa7e18db9
children c071cbedc651
files src/java.base/share/classes/java/lang/invoke/constant/ConstantDescs.java test/jdk/java/lang/invoke/constant/MethodTypeRefTest.java
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/java/lang/invoke/constant/ConstantDescs.java	Mon Apr 30 05:20:00 2018 -0700
+++ b/src/java.base/share/classes/java/lang/invoke/constant/ConstantDescs.java	Mon Apr 30 09:46:37 2018 -0700
@@ -359,7 +359,7 @@
 
     static final ConstantMethodHandleDesc BSM_METHODTYPEDESC
             = ConstantDescs.ofConstantBootstrap(ClassDesc.of("java.lang.invoke.constant", "ConstantMethodTypeDesc"),
-                                                "constantBootstrap", CR_MethodTypeDesc, CR_String);
+                                                "constantBootstrap", CR_ConstantMethodTypeDesc, CR_String);
 
     static final ConstantMethodHandleDesc BSM_METHODHANDLEDESC
             = ConstantDescs.ofConstantBootstrap(ClassDesc.of("java.lang.invoke.constant", "ConstantMethodHandleDesc"),
--- a/test/jdk/java/lang/invoke/constant/MethodTypeRefTest.java	Mon Apr 30 05:20:00 2018 -0700
+++ b/test/jdk/java/lang/invoke/constant/MethodTypeRefTest.java	Mon Apr 30 09:46:37 2018 -0700
@@ -40,6 +40,7 @@
 
 /**
  * @test
+ * @compile -XDfolding=false MethodTypeRefTest.java
  * @run testng MethodTypeRefTest
  * @summary unit tests for java.lang.invoke.constant.MethodTypeRef
  */