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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 15
    • Component/s: 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".

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

              Created:
              Updated: