changeset 53153:5a029fca0235 lworld

8214706: [lworld] MethodHandle lookup fails with asBoxType() class in MethodType
author thartmann
date Mon, 03 Dec 2018 14:29:19 +0100
parents ae2c5e86a782
children df2a954edeae
files src/hotspot/share/classfile/javaClasses.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/share/classfile/javaClasses.cpp	Mon Dec 03 10:52:03 2018 +0530
+++ b/src/hotspot/share/classfile/javaClasses.cpp	Mon Dec 03 14:29:19 2018 +0100
@@ -1015,7 +1015,7 @@
     set_box_mirror(value_mirror(), mirror());
     set_value_mirror(value_mirror(), value_mirror());
     return value_mirror();
-}                                              
+}
 
 #if INCLUDE_CDS_JAVA_HEAP
 // Clears mirror fields. Static final fields with initial values are reloaded
@@ -1485,7 +1485,7 @@
     return;
   }
   if (is_instance)  {
-    if (is_value) {
+    if (is_value && (java_class == value_mirror(java_class))) {
       st->print("Q");
     } else {
       st->print("L");