JDK-4361102 : sun.text.resources.LocaleData doing large amounts of work in initializer
Type:Bug
Component:core-libs
Sub-Component:java.text
Affected Version:1.4.0
Priority:P1
Status:Resolved
Resolution:Fixed
OS:windows_nt
CPU:x86
Submitted:2000-08-09
Updated:2000-09-01
Resolved:2000-09-01
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
A change to sun.text.resources.LocaleData is causing it to now load large amounts of data on start-up, seriously imapcting start-up time of Java programs.
Comments
CONVERTED DATA
BugTraq+ Release Management Values
COMMIT TO FIX:
merlin-beta
FIXED IN:
merlin-beta
INTEGRATED IN:
merlin-beta
14-06-2004
EVALUATION
The slowdown observed in some applications was triggered by the two new methods in LocaleData that were added for 4236976. Before the change, LocaleData was only loaded if you called getAvailableLocales for one of the java.text/java.util classes. Now it gets loaded if you access any of the resource bundles in sun.text.resources, which is a lot more common.
Fixed by changing getAvailableLocales to calculate the locale list only when needed.
norbert.lindenberg@Eng 2000-08-17