hotspot/src/share/vm/classfile/classFileParser.cpp
changeset 32824 3b686e54dece
parent 31867 5d39059535ba
child 33105 294e48b4f704
child 33160 c59f1676d27e
equal deleted inserted replaced
32823:ca8fef4cd57b 32824:3b686e54dece
  1987     // (JVM Spec 2nd ed., chapter 4.6)
  1987     // (JVM Spec 2nd ed., chapter 4.6)
  1988     if (_major_version < 51) { // backward compatibility
  1988     if (_major_version < 51) { // backward compatibility
  1989       flags = JVM_ACC_STATIC;
  1989       flags = JVM_ACC_STATIC;
  1990     } else if ((flags & JVM_ACC_STATIC) == JVM_ACC_STATIC) {
  1990     } else if ((flags & JVM_ACC_STATIC) == JVM_ACC_STATIC) {
  1991       flags &= JVM_ACC_STATIC | JVM_ACC_STRICT;
  1991       flags &= JVM_ACC_STATIC | JVM_ACC_STRICT;
       
  1992     } else {
       
  1993       // As of major_version 51, a method named <clinit> without ACC_STATIC is
       
  1994       // just another method. So, do a normal method modifer check.
       
  1995       verify_legal_method_modifiers(flags, is_interface, name, CHECK_(nullHandle));
  1992     }
  1996     }
  1993   } else {
  1997   } else {
  1994     verify_legal_method_modifiers(flags, is_interface, name, CHECK_(nullHandle));
  1998     verify_legal_method_modifiers(flags, is_interface, name, CHECK_(nullHandle));
  1995   }
  1999   }
  1996 
  2000