United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6572242 (rb) ResourceBundle.getBundle should ignore NoClassDefFoundError from ClassLoader on Windows
JDK-6572242 : (rb) ResourceBundle.getBundle should ignore NoClassDefFoundError from ClassLoader on Windows

Details
Type:
Bug
Submit Date:
2007-06-21
Status:
Closed
Updated Date:
2011-03-08
Project Name:
JDK
Resolved Date:
2011-03-08
Component:
core-libs
OS:
windows_xp
Sub-Component:
java.util:i18n
CPU:
x86
Priority:
P2
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:

Related Reports
Backport:
Relates:
Relates:

Sub Tasks

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.

                                    

Comments
EVALUATION

NoClassDefFoundError should be ignored to be compatible.
                                     
2007-06-21



Hardware and Software, Engineered to Work Together