hotspot/src/share/vm/classfile/classFileParser.cpp
changeset 33207 edc4431940b2
parent 33105 294e48b4f704
child 33230 23bb11a5cf4e
equal deleted inserted replaced
33206:da8c3575c076 33207:edc4431940b2
  1993       // just another method. So, do a normal method modifer check.
  1993       // just another method. So, do a normal method modifer check.
  1994       verify_legal_method_modifiers(flags, is_interface, name, CHECK_(nullHandle));
  1994       verify_legal_method_modifiers(flags, is_interface, name, CHECK_(nullHandle));
  1995     }
  1995     }
  1996   } else {
  1996   } else {
  1997     verify_legal_method_modifiers(flags, is_interface, name, CHECK_(nullHandle));
  1997     verify_legal_method_modifiers(flags, is_interface, name, CHECK_(nullHandle));
       
  1998   }
       
  1999 
       
  2000   if (name == vmSymbols::object_initializer_name() && is_interface) {
       
  2001     classfile_parse_error("Interface cannot have a method named <init>, class file %s", CHECK_(nullHandle));
  1998   }
  2002   }
  1999 
  2003 
  2000   int args_size = -1;  // only used when _need_verify is true
  2004   int args_size = -1;  // only used when _need_verify is true
  2001   if (_need_verify) {
  2005   if (_need_verify) {
  2002     args_size = ((flags & JVM_ACC_STATIC) ? 0 : 1) +
  2006     args_size = ((flags & JVM_ACC_STATIC) ? 0 : 1) +