< prev index next >
src/hotspot/share/compiler/methodMatcher.cpp
Print this page
*** 269,279 ****
error_msg = "Chars '<' and '>' not allowed in class name";
return;
}
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;
}
}
--- 269,280 ----
error_msg = "Chars '<' and '>' not allowed in class name";
return;
}
if ((strchr(method_name, JVM_SIGNATURE_SPECIAL) != NULL) ||
(strchr(method_name, JVM_SIGNATURE_ENDSPECIAL) != NULL)) {
! if (!vmSymbols::object_initializer_name()->equals(method_name) &&
! !vmSymbols::class_initializer_name()->equals(method_name)) {
error_msg = "Chars '<' and '>' only allowed in <init> and <clinit>";
return;
}
}
< prev index next >