changeset 54946:b7c408df5008

8224174: java.lang.Number has a default constructor Reviewed-by: rriggs, bpb
author darcy
date Mon, 20 May 2019 10:16:45 -0700
parents cc92a45f4c73
children 7bfb499b4f38
files src/java.base/share/classes/java/lang/Number.java
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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