< prev index next >

src/hotspot/share/interpreter/rewriter.cpp

Print this page
@@ -453,15 +453,15 @@
  
              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()) {
+                   if (!method->is_class_initializer()) {
                      fd.set_has_initialized_final_update(true);
                    }
                  } else {
-                   if (!method->is_object_initializer()) {
+                   if (!method->is_object_constructor()) {
                      fd.set_has_initialized_final_update(true);
                    }
                  }
                }
              }
< prev index next >