We're updating the issue view to help you get more done. 

RuleBasedNumberFormat Spellout for fr_BE gets ClassCastException

Description

Trying to construct a RuleBasedNumberFormat using "spellout" for the fr_BE
locale results in a ClassCastException in trying to retrieve the
"SpelloutRules". The code uses "bundle.getString("SpelloutRules")" to retrieve
the rules, but for this locale the data is an instance of
ICUListResourceBundle.Alias for the locale fr_CH rather than a String. When the
JDK's ResourceBundle getString method tries to cast this to "String", the
exception occurs.

You've either need to add logic to support the alias data, or eliminate the use
of alias data with the Java version of ICU.

Environment

Status

Assignee

TracBot

Reporter

TracBot

Labels

tracCreated

Oct 03, 2003, 10:14 PM

tracOwner

ram

tracProject

ICU4J

tracReporter

olsok@509bb288e0e9f23b

tracResolution

fixed

tracReviewer

doug

tracStatus

closed

Components

Fix versions

Priority

blocker