changeset 11335:541a8cef4e0d jdk9-b49

8071959: java.lang.Object uses implicit default constructor Reviewed-by: lancea
author darcy
date Thu, 29 Jan 2015 16:16:35 -0800
parents f7efa68134b8
children a25730563e99 dc850ba58810
files src/java.base/share/classes/java/lang/Object.java
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/java/lang/Object.java	Thu Jan 29 15:35:29 2015 -0800
+++ b/src/java.base/share/classes/java/lang/Object.java	Thu Jan 29 16:16:35 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.