DurationFormat.getInstance(ULocale) thew MissingResourcesException

Description

Deleted Component: formatting

Code snippet:
DurationFormat.getInstance(new ULocale("th@calendar=buddhist"));

Result:
java.util.MissingResourceException: Duration data not found for th@calendar=buddhist
at com.ibm.icu.impl.duration.impl.ResourceBasedPeriodFormatterDataService.get(ResourceBasedPeriodFormatterDataService.java:122)
at com.ibm.icu.impl.duration.BasicPeriodFormatterFactory.getData(BasicPeriodFormatterFactory.java:213)
at com.ibm.icu.impl.duration.BasicPeriodFormatter.withLocale(BasicPeriodFormatter.java:43)
at com.ibm.icu.impl.duration.BasicDurationFormatterFactory.getFormatter(BasicDurationFormatterFactory.java:147)
at com.ibm.icu.impl.duration.BasicDurationFormat.<init>(BasicDurationFormat.java:74)
at com.ibm.icu.impl.duration.BasicDurationFormat.getInstance(BasicDurationFormat.java:31)
at com.ibm.icu.text.DurationFormat.getInstance(DurationFormat.java:32)
....

Activity

Show:
TracBot
June 30, 2018, 11:46 PM
Trac Comment 3 by —2008-08-05T18:24:38.000Z

stripped tags from locale string before looking up resource

the default duration format doesn't use the calendar, at least not currently.

Fixed

Assignee

Douglas Felt

Reporter

TracBot

Components

None

Labels

Reviewer

None

Priority

assess

Time Needed

None

Fix versions