changeset 50626:89750f4b2b25 condy-folding

updating langtools regression tests after changes to the API
author vromero
date Sat, 12 May 2018 14:06:37 -0700
parents 528fce34226e
children f9f4afd36064
files test/langtools/tools/javac/specialConstantFolding/ReflectiveErrorTest.out test/langtools/tools/javac/specialConstantFolding/harness/tests/InstanceTrackableMethodsTest.java
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/test/langtools/tools/javac/specialConstantFolding/ReflectiveErrorTest.out	Fri May 11 14:46:38 2018 -0700
+++ b/test/langtools/tools/javac/specialConstantFolding/ReflectiveErrorTest.out	Sat May 12 14:06:37 2018 -0700
@@ -1,2 +1,2 @@
-ReflectiveErrorTest.java:11:58: compiler.err.reflective.error: ofDescriptor, java.lang.invoke.constant.MethodTypeDesc, Invalid parameter type: ^
+ReflectiveErrorTest.java:11:58: compiler.err.reflective.error: ofDescriptor, java.lang.invoke.constant.MethodTypeDesc, Bad method descriptor: (Ljava/lang/String;^)D
 1 error
--- a/test/langtools/tools/javac/specialConstantFolding/harness/tests/InstanceTrackableMethodsTest.java	Fri May 11 14:46:38 2018 -0700
+++ b/test/langtools/tools/javac/specialConstantFolding/harness/tests/InstanceTrackableMethodsTest.java	Sat May 12 14:06:37 2018 -0700
@@ -15,7 +15,7 @@
 
     void test1() {
         ClassDesc string1 = ClassDesc.ofDescriptor("Ljava/lang/String;");
-        ClassDesc stringArr = string1.array();
+        ClassDesc stringArr = string1.arrayType();
         ClassDesc string2 = stringArr.componentType();
         ClassDesc string3 = ClassDesc.ofDescriptor(string2.descriptorString());
         check(string1.descriptorString().equals(string2.descriptorString()));
@@ -27,8 +27,8 @@
     @InstructionInfo(bytecodePosition=3, values={"CONSTANT_Class_info", "[Ljava/lang/String;"})
     void test2() {
         ClassDesc stringClass = ClassDesc.ofDescriptor("Ljava/lang/String;");
-        Class<?> stringArrClass = ldc(stringClass.array());
-        ClassDesc stringArrConst = stringClass.array();
+        Class<?> stringArrClass = ldc(stringClass.arrayType());
+        ClassDesc stringArrConst = stringClass.arrayType();
         Class<?> stringArrClass2 = ldc(stringArrConst);
     }
 }