mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-15 17:56:54 +00:00
ICU-8639 Merging #8626 TimeZone.getTimeZone and TimeZone.getDefault raise Assertion Error (r30197) to maint-4-8
X-SVN-Rev: 30287
This commit is contained in:
parent
40974f3d33
commit
0b8ff62abf
2 changed files with 4 additions and 3 deletions
|
@ -444,8 +444,10 @@ public class OlsonTimeZone extends BasicTimeZone {
|
|||
* @param top the top-level zoneinfo resource bundle. This is used
|
||||
* to lookup the rule that `res' may refer to, if there is one.
|
||||
* @param res the resource bundle of the zone to be constructed
|
||||
* @param id time zone ID
|
||||
*/
|
||||
public OlsonTimeZone(UResourceBundle top, UResourceBundle res){
|
||||
public OlsonTimeZone(UResourceBundle top, UResourceBundle res, String id){
|
||||
super.setID(id);
|
||||
construct(top, res);
|
||||
}
|
||||
|
||||
|
|
|
@ -501,8 +501,7 @@ public final class ZoneMeta {
|
|||
UResourceBundle top = UResourceBundle.getBundleInstance(
|
||||
ICUResourceBundle.ICU_BASE_NAME, ZONEINFORESNAME, ICUResourceBundle.ICU_DATA_CLASS_LOADER);
|
||||
UResourceBundle res = openOlsonResource(top, id);
|
||||
z = new OlsonTimeZone(top, res);
|
||||
z.setID(id);
|
||||
z = new OlsonTimeZone(top, res, id);
|
||||
SYSTEM_ZONE_CACHE.put(id, z);
|
||||
}catch(Exception ex){
|
||||
return null;
|
||||
|
|
Loading…
Add table
Reference in a new issue