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

[Fmt] RFE: java.text.Format should define protected constructor

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 6
    • core-libs
    • None
    • b48
    • generic
    • generic

      java.text.Format doesn't define a constructor in the source code and therefore receives a public default constructor (JLS 8.8.7). This has two drawbacks:
      1) There's no documentation for the constructor.
      2) The constructor is public, even though nothing besides subclass constructors can call the constructor of an abstract class.

      So, we should define a protected constructor.

            peytoia Yuka Kamiya (Inactive)
            nlindenbsunw Norbert Lindenberg (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: