JDK-8224232 : java.lang.Number has a default constructor
  • Type: CSR
  • Component: core-libs
  • Sub-Component: java.lang
  • Priority: P4
  • Status: Closed
  • Resolution: Approved
  • Fix Versions: 13
  • Submitted: 2019-05-20
  • Updated: 2019-05-20
  • Resolved: 2019-05-20
Related Reports
CSR :  
Description
Summary
-------

Add an explicitly declared no-arg constructor to `java.lang.Number` to avoid use of the default constructor.

Problem
-------

Default constructors are inappropriate for well-documented APIs.

Solution
--------

Add an explicit (trivial) constructor to `java.lang.Number`.

Specification
-------------

     public abstract class Number implements java.io.Serializable {
         /**
    +     * Constructor for subclasses to call.
    +     */
    +    public Number() {super();}
    +
    +    /**



Comments
Moving to Approved.
20-05-2019