< prev index next >

src/hotspot/share/compiler/methodMatcher.cpp

Print this page
*** 301,12 ***
      }
  
      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;
        }
      }
  
      if (c_match == MethodMatcher::Unknown || m_match == MethodMatcher::Unknown) {
--- 301,13 ---
      }
  
      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) &&
!           !vmSymbols::inline_factory_name()->equals(method_name)) {
+         error_msg = "Chars '<' and '>' only allowed in <init>, <clinit> and <vnew>";
          return;
        }
      }
  
      if (c_match == MethodMatcher::Unknown || m_match == MethodMatcher::Unknown) {
< prev index next >