mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8256867: Classes with empty PermittedSubclasses attribute cannot be extended
Reviewed-by: lfoltan, mchung, jlahoda, chegar
This commit is contained in:
parent
e6b4c4d716
commit
d33a689b96
8 changed files with 154 additions and 61 deletions
|
@ -741,8 +741,7 @@ void InstanceKlass::deallocate_contents(ClassLoaderData* loader_data) {
|
|||
|
||||
bool InstanceKlass::is_sealed() const {
|
||||
return _permitted_subclasses != NULL &&
|
||||
_permitted_subclasses != Universe::the_empty_short_array() &&
|
||||
_permitted_subclasses->length() > 0;
|
||||
_permitted_subclasses != Universe::the_empty_short_array();
|
||||
}
|
||||
|
||||
bool InstanceKlass::should_be_initialized() const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue