ChoiceFormat and MessageFormat constructors call non-final public method

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 22
    • Affects Version/s: None
    • Component/s: core-libs
    • b23
    • generic
    • generic

      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

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

              Created:
              Updated:
              Resolved: