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

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

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b16
    • CPU:
      x86
    • OS:
      windows_xp
    • Verification:
      Verified

      Backports

        Description

        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.

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: