mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8257596: Clarify trusted final fields for record classes
Reviewed-by: hseigel, chegar, psandoz
This commit is contained in:
parent
b1afed7501
commit
2001da3dd4
4 changed files with 44 additions and 29 deletions
|
@ -739,6 +739,12 @@ void InstanceKlass::deallocate_contents(ClassLoaderData* loader_data) {
|
|||
}
|
||||
}
|
||||
|
||||
bool InstanceKlass::is_record() const {
|
||||
return _record_components != NULL &&
|
||||
is_final() &&
|
||||
java_super() == SystemDictionary::Record_klass();
|
||||
}
|
||||
|
||||
bool InstanceKlass::is_sealed() const {
|
||||
return _permitted_subclasses != NULL &&
|
||||
_permitted_subclasses != Universe::the_empty_short_array();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue