< prev index next >

src/hotspot/share/compiler/methodMatcher.cpp

Print this page
*** 302,11 ***
  
      if ((strchr(method_name, JVM_SIGNATURE_SPECIAL) != nullptr) ||
          (strchr(method_name, JVM_SIGNATURE_ENDSPECIAL) != nullptr)) {
        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;
        }
      }
  
      if (c_match == MethodMatcher::Unknown || m_match == MethodMatcher::Unknown) {
--- 302,11 ---
  
      if ((strchr(method_name, JVM_SIGNATURE_SPECIAL) != nullptr) ||
          (strchr(method_name, JVM_SIGNATURE_ENDSPECIAL) != nullptr)) {
        if (!vmSymbols::object_initializer_name()->equals(method_name) &&
            !vmSymbols::class_initializer_name()->equals(method_name)) {
!         error_msg = "Chars '<' and '>' only allowed in <init>, <clinit>";
          return;
        }
      }
  
      if (c_match == MethodMatcher::Unknown || m_match == MethodMatcher::Unknown) {
< prev index next >