* @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);
}
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;