Suspicious check in Locale.getDisplayName(Locale inLocale)

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 24
    • Affects Version/s: 24
    • Component/s: core-libs
    • b19
    • generic
    • generic

      Locale.getDisplayName(Locale inLocale) provides a fallback which is a hard coded pattern. There exists a check on the length of the displayNames, but this array is initialized only a few lines above, always with a length that surpasses the check.

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

              Created:
              Updated:
              Resolved: