Hello,

Please review the patch below to fix

    JDK-8071959: java.lang.Object uses implicit default constructor

diff -r 458adf31ad5b src/java.base/share/classes/java/lang/Object.java
--- a/src/java.base/share/classes/java/lang/Object.java Thu Jan 29 15:14:44 2015 -0800 +++ b/src/java.base/share/classes/java/lang/Object.java Thu Jan 29 16:00:03 2015 -0800
@@ -42,6 +42,11 @@
     }

     /**
+     * Constructs a new object.
+     */
+    public Object() {}
+
+    /**
      * Returns the runtime class of this {@code Object}. The returned
      * {@code Class} object is the object that is locked by {@code
      * static synchronized} methods of the represented class.

At present, java.lang.Object relies on the default constructor generated by javac; how embarrassing!

Thanks,

-Joe

Reply via email to