src/hotspot/share/classfile/bytecodeAssembler.cpp
changeset 49380 74518f9ca4b4
parent 49361 1956d0ec092a
child 58273 08a5148e7c4e
--- a/src/hotspot/share/classfile/bytecodeAssembler.cpp	Mon Mar 12 14:11:54 2018 -0700
+++ b/src/hotspot/share/classfile/bytecodeAssembler.cpp	Thu Mar 08 14:33:57 2018 -0800
@@ -56,6 +56,11 @@
   cp->set_pool_holder(_orig->pool_holder());
   _orig->copy_cp_to(1, _orig->length() - 1, cp, 1, CHECK_NULL);
 
+  // Preserve dynamic constant information from the original pool
+  if (_orig->has_dynamic_constant()) {
+    cp->set_has_dynamic_constant();
+  }
+
   for (int i = 0; i < _entries.length(); ++i) {
     BytecodeCPEntry entry = _entries.at(i);
     int idx = i + _orig->length();