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

Use the version resource bundle correctly or make it a property file

    Details

    • Type: Enhancement
    • Status: New
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 15
    • Fix Version/s: tbd
    • Component/s: tools
    • Labels:
      None

      Description

      I found this while working on JDK-8246078.

      The version string used for the javadoc tool and the Standard doclet is stored in the "jdk.javadoc.internal.tool.resources.version" resource bundle. This bundle is created by build and then accessed by Javadoc at runtime.

      Looking at the code and the bundle I see two problems:

      1.) the bundle is not localized
      2.) the bundle is used with a surprising locale, Locale.getDefault()

      This has to be investigated. An important question is whether or not this version should be a localizable resource. If not, then this bundle should be swapped to a simple property file.

      Today this works because this bundle is "default" which is "used as the bundle of last resort if a specific locale is not supported".

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                prappo Pavel Rappo
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: