Currently RuleBasedCollator defines getCollationElementIterator methods, but the abstract Collator class doesn't. This means, you can't call Collator.getInstance().getCollationElementIterator(), you have to assume that getInstance will return a RuleBasedCollator and cast to that class.
Collator should define this method.
Collator should define this method.
- relates to
-
JDK-6486695 [Col] Doc: CollationElementIterator example assumes Collator.getInstance return type
-
- Closed
-