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

Issues with cached localizedLevelName in java.util.logging.Level

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7u60
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Introduced In Version:
    • Resolved In Build:
      b01
    • Verification:
      Not verified

      Backports

        Description

        This is a regression introduced in 7u13:

        A new localizedLevelName field was added to j.u.l.Level, which changed the serial form.
        Once set, Level.getLocalizedName() will always return the cached name, regardless of the current locale.

        The change in serial form should not introduce any interop issue, because localizedLevelName will be recomputed if null.

        The fact that once cached, the localizedLevelName is never recomputed is the more problematic issue.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  dfuchs Daniel Fuchs
                  Reporter:
                  dfuchs Daniel Fuchs
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: