changeset 47430:9b8c7b25f15d condy

Rename to CONSTANT_DYNAMIC in bytecode API.
author psandoz
date Mon, 16 Oct 2017 16:03:44 -0700
parents 65d373941f5d
children 55b3323cb99e
files test/jdk/lib/testlibrary/bytecode/jdk/experimental/bytecode/BytePoolHelper.java test/jdk/lib/testlibrary/bytecode/jdk/experimental/bytecode/PoolTag.java
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/test/jdk/lib/testlibrary/bytecode/jdk/experimental/bytecode/BytePoolHelper.java	Fri Oct 13 15:29:58 2017 -0400
+++ b/test/jdk/lib/testlibrary/bytecode/jdk/experimental/bytecode/BytePoolHelper.java	Mon Oct 16 16:03:44 2017 -0700
@@ -191,7 +191,7 @@
         }
 
         void setDynamicConstant(int bsmIndex, CharSequence name, String type) {
-            tag = PoolTag.CONSTANT_INVOKEDYNAMIC;
+            tag = PoolTag.CONSTANT_DYNAMIC;
             o1 = bsmIndex;
             o2 = name;
             o3 = type;
@@ -475,7 +475,7 @@
             int nameAndType_idx = putNameAndType(constName, constType);
             poolKey.at(currentIndex++);
             entries.enter(poolKey);
-            pool.writeByte(PoolTag.CONSTANT_CONSTANTDYNAMIC.tag);
+            pool.writeByte(PoolTag.CONSTANT_DYNAMIC.tag);
             pool.writeChar(bsmIndex);
             pool.writeChar(nameAndType_idx);
         }
--- a/test/jdk/lib/testlibrary/bytecode/jdk/experimental/bytecode/PoolTag.java	Fri Oct 13 15:29:58 2017 -0400
+++ b/test/jdk/lib/testlibrary/bytecode/jdk/experimental/bytecode/PoolTag.java	Mon Oct 16 16:03:44 2017 -0700
@@ -38,7 +38,7 @@
     CONSTANT_NAMEANDTYPE(12),
     CONSTANT_METHODHANDLE(15),
     CONSTANT_METHODTYPE(16),
-    CONSTANT_CONSTANTDYNAMIC(17),
+    CONSTANT_DYNAMIC(17),
     CONSTANT_INVOKEDYNAMIC(18);
 
     public final int tag;