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

(rb) ResourceBundle.getBundle should ignore NoClassDefFoundError from ClassLoader on Windows

XMLWordPrintable

    • b16
    • x86
    • windows_xp
    • Verified

        The 6560126 fix includes a change to throw all Errors from ClassLoader, which caused a behavior change. When there are a class and a properties file which have the same bundle name in different case, such as "Config.class" and "config.properties", a class loader throws "java.lang.NoClassDefFoundError: config (wrong name: Config)" on Windows. Previously this Error was ignored in ResourceBundle.getBundle and "config.properties" was loaded successfully. However, ResourceBundle.getBundle fails to load the properties file after the 6560126 change.

        There's no problem on UNIX/Linux.

              okutsu Masayoshi Okutsu
              okutsu Masayoshi Okutsu
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: