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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 15
    • tools
    • None

      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".

            Unassigned Unassigned
            prappo Pavel Rappo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: