src/hotspot/share/jvmci/jvmciCompilerToVM.cpp
changeset 58722 cba8afa5cfed
parent 58282 03fce7b04b42
child 58793 81ad1da857f6
--- a/src/hotspot/share/jvmci/jvmciCompilerToVM.cpp	Mon Oct 21 09:26:14 2019 -0700
+++ b/src/hotspot/share/jvmci/jvmciCompilerToVM.cpp	Mon Oct 21 13:13:16 2019 -0400
@@ -535,8 +535,8 @@
       JVMCI_THROW_MSG_NULL(ClassNotFoundException, str);
     }
   } else {
-    if (class_name->char_at(0) == 'L' &&
-      class_name->char_at(class_name->utf8_length()-1) == ';') {
+    if (class_name->char_at(0) == JVM_SIGNATURE_CLASS &&
+        class_name->char_at(class_name->utf8_length()-1) == JVM_SIGNATURE_ENDCLASS) {
       // This is a name from a signature.  Strip off the trimmings.
       // Call recursive to keep scope of strippedsym.
       TempNewSymbol strippedsym = SymbolTable::new_symbol(class_name->as_utf8()+1,