< prev index next > src/hotspot/share/interpreter/rewriter.cpp
Print this page
fieldDescriptor fd;
if (klass->find_field(field_name, field_sig, &fd) != nullptr) {
if (fd.access_flags().is_final()) {
if (fd.access_flags().is_static()) {
! if (!method->is_static_initializer()) {
fd.set_has_initialized_final_update(true);
}
} else {
! if (!method->is_object_initializer()) {
fd.set_has_initialized_final_update(true);
}
}
}
}
fieldDescriptor fd;
if (klass->find_field(field_name, field_sig, &fd) != nullptr) {
if (fd.access_flags().is_final()) {
if (fd.access_flags().is_static()) {
! if (!method->is_class_initializer()) {
fd.set_has_initialized_final_update(true);
}
} else {
! if (!method->is_object_constructor()) {
fd.set_has_initialized_final_update(true);
}
}
}
}
< prev index next >