changeset 52249:7b6b1ca65fb3 jep-334

updating test DynamicConstantDescTest to use the new API
author vromero
date Tue, 28 Aug 2018 08:16:01 -0700
parents d7ceca1b69c5
children f0b08cefdef3 1f6d3d263d8c
files test/langtools/tools/javac/specialConstantFolding/DynamicConstantDescTest.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/langtools/tools/javac/specialConstantFolding/DynamicConstantDescTest.java	Mon Aug 27 12:41:37 2018 -0700
+++ b/test/langtools/tools/javac/specialConstantFolding/DynamicConstantDescTest.java	Tue Aug 28 08:16:01 2018 -0700
@@ -43,7 +43,7 @@
     );
 
     public static void main(String[] args) throws Throwable {
-        ConstantDesc<String> d = DynamicConstantDesc.<String>of(BSM_INVOKE).withArgs(MHR_CONCAT, "Hello, ", "world!");
+        ConstantDesc<String> d = DynamicConstantDesc.<String>of(BSM_INVOKE, MHR_CONCAT, "Hello, ", "world!");
         Assert.check(d.toString().equals("DynamicConstantDesc[ConstantBootstraps::invoke(MethodHandleDesc[VIRTUAL/String::concat(String)String],Hello, ,world!)Object]"));
     }
 }