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

ChoiceFormat and MessageFormat constructors call non-final public method

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 22
    • None
    • core-libs
    • b23
    • generic
    • generic

    Description

      Some j.text.Format classes provide pattern setting methods in the form of the applyPattern method. For example, ChoiceFormat, MessageFormat, DecimalFormat, and SimpleDateFormat. The former two call this method in their constructor(s).

      As this method is public and non-final, it can be overridden by a subclass.
      If subclasses override any of these methods, the changes may be reflected in the constructors as well.

      Both the public methods and constructors should call a separate private method

      Attachments

        Issue Links

          Activity

            People

              jlu Justin Lu
              jlu Justin Lu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: