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

User-localized resource files not found after perf optimization for awt/swing resources

XMLWordPrintable

    • 6
    • b48
    • x86
    • windows_xp

      FULL PRODUCT VERSION :
      java version "1.6.0-ea"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-ea-b43)
      Java HotSpot(TM) Client VM (build 1.6.0-ea-b43, mixed mode, sharing)

      A DESCRIPTION OF THE PROBLEM :
      I have supporting localization of standart Swing dialogs in russian language for distributing with our product. In previous version of JDK you can use both '.class' and '.properties' format of resource. For samplifity we used '.properties' format, but in Mustang this is not working - only '.class' format are supported.

      The root of the problem is code in sun.util.CoreResourceBundleControl, which are used in Swing to load bundles:

      public List getFormats(String s) {
        return java.util.ResourceBundle.Control.FORMAT_CLASS;
      }

      If this is intentional change of the behavoir, then documentation should be updated.



      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER SUBMITTED WORKAROUND :
      Use '.class' format of resource bundles

      Release Regression From : 5.0u3
      The above release value was the last known release where this
      bug was known to work. Since then there has been a regression.
      ###@###.### 2005-07-20 10:40:59 GMT

            xlu Xiaobin Lu (Inactive)
            jssunw Jitender S (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: