8224174: java.lang.Number has a default constructor
authordarcy
Mon, 20 May 2019 10:16:45 -0700
changeset 54946 b7c408df5008
parent 54945 cc92a45f4c73
child 54949 7bfb499b4f38
8224174: java.lang.Number has a default constructor Reviewed-by: rriggs, bpb
src/java.base/share/classes/java/lang/Number.java
--- a/src/java.base/share/classes/java/lang/Number.java	Wed May 15 09:15:59 2019 -0700
+++ b/src/java.base/share/classes/java/lang/Number.java	Mon May 20 10:16:45 2019 -0700
@@ -54,6 +54,11 @@
  */
 public abstract class Number implements java.io.Serializable {
     /**
+     * Constructor for subclasses to call.
+     */
+    public Number() {super();}
+
+    /**
      * Returns the value of the specified number as an {@code int}.
      *
      * @return  the numeric value represented by this object after conversion