mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8135206: VM permits illegal flags for abstract methods in interfaces, versions 45.3 - 51.0
Add additional method flag checks Reviewed-by: jiangli, minqi
This commit is contained in:
parent
69088591f9
commit
80e499001a
1 changed files with 2 additions and 2 deletions
|
@ -4602,8 +4602,8 @@ void ClassFileParser::verify_legal_method_modifiers(jint flags,
|
|||
}
|
||||
} else if (major_gte_15) {
|
||||
// Class file version in the interval [JAVA_1_5_VERSION, JAVA_8_VERSION)
|
||||
if (!is_public || is_static || is_final || is_synchronized ||
|
||||
is_native || !is_abstract || is_strict) {
|
||||
if (!is_public || is_private || is_protected || is_static || is_final ||
|
||||
is_synchronized || is_native || !is_abstract || is_strict) {
|
||||
is_illegal = true;
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue