Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8224232

java.lang.Number has a default constructor

    Details

    • Type: CSR
    • Status: Closed
    • Priority: P4
    • Resolution: Approved
    • Fix Version/s: 13
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Compatibility Risk:
      minimal
    • Compatibility Risk Description:
      Add explicitly declared replacement to the default no-arg constructor.
    • Interface Kind:
      Java API
    • Scope:
      SE

      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();}
      +
      +    /**

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                darcy Joe Darcy
                Reporter:
                darcy Joe Darcy
                Reviewed By:
                Brian Burkhalter, Roger Riggs
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: