--- a/src/hotspot/share/compiler/methodMatcher.cpp Mon Oct 21 09:26:14 2019 -0700
+++ b/src/hotspot/share/compiler/methodMatcher.cpp Mon Oct 21 13:13:16 2019 -0400
@@ -264,11 +264,13 @@
c_match = check_mode(class_name, error_msg);
m_match = check_mode(method_name, error_msg);
- if ((strchr(class_name, '<') != NULL) || (strchr(class_name, '>') != NULL)) {
+ if ((strchr(class_name, JVM_SIGNATURE_SPECIAL) != NULL) ||
+ (strchr(class_name, JVM_SIGNATURE_ENDSPECIAL) != NULL)) {
error_msg = "Chars '<' and '>' not allowed in class name";
return;
}
- if ((strchr(method_name, '<') != NULL) || (strchr(method_name, '>') != NULL)) {
+ if ((strchr(method_name, JVM_SIGNATURE_SPECIAL) != NULL) ||
+ (strchr(method_name, JVM_SIGNATURE_ENDSPECIAL) != NULL)) {
if ((strncmp("<init>", method_name, 255) != 0) && (strncmp("<clinit>", method_name, 255) != 0)) {
error_msg = "Chars '<' and '>' only allowed in <init> and <clinit>";
return;