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

Suspicious check in Locale.getDisplayName(Locale inLocale)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • 24
    • 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.

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

              Created:
              Updated:
              Resolved: