From 867d84d7319734b21e0cd6f004d069f5c9d176c1 Mon Sep 17 00:00:00 2001 From: Joe Darcy Date: Mon, 20 May 2019 10:16:45 -0700 Subject: [PATCH] 8224174: java.lang.Number has a default constructor Reviewed-by: rriggs, bpb --- src/java.base/share/classes/java/lang/Number.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/java.base/share/classes/java/lang/Number.java b/src/java.base/share/classes/java/lang/Number.java index 019ed9c56c3..76657378d13 100644 --- a/src/java.base/share/classes/java/lang/Number.java +++ b/src/java.base/share/classes/java/lang/Number.java @@ -53,6 +53,11 @@ package java.lang; * @since 1.0 */ 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}. *