equal
deleted
inserted
replaced
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 |