< prev index next >

src/jdk.internal.vm.ci/share/classes/jdk/vm/ci/meta/ResolvedJavaMethod.java

Print this page
@@ -458,11 +458,11 @@
  
      /**
       * Determines if this method is {@link java.lang.Object#Object()}.
       */
      default boolean isJavaLangObjectInit() {
-         return getDeclaringClass().isJavaLangObject() && getName().equals("<init>");
+         return getDeclaringClass().isJavaLangObject() && (getName().equals("<init>") || getName().equals("<vnew>"));
      }
  
      /**
       * Returns true if this method has a
       * {@code jdk.internal.misc.ScopedMemoryAccess.Scoped} annotation.
< prev index next >