OSDN Git Service

java.text.RuleBasedCollator fixes.
authorElliott Hughes <enh@google.com>
Thu, 22 Apr 2010 20:38:42 +0000 (13:38 -0700)
committerElliott Hughes <enh@google.com>
Thu, 22 Apr 2010 21:00:53 +0000 (14:00 -0700)
commit03de7aa5b1ed3094cdbaea685826ab8ca06271d1
tree46c730edb143385034ca879cdad58dff38110bf1
parent372eebbde00be3f41c37a4867efad951c193594f
java.text.RuleBasedCollator fixes.

Add expectations for broken harmony tests, add our own equivalent (but correct)
tets, and fix the bug turned up by the correct tests: the icu4jni
RuleBasedCollator was using toString to convert a CharacterIterator to a
String, resulting in iteration over the result of Object.toString (the class
name and identity hash code) rather than the characters of interest.

Also shut javac up about non-ASCII characters in Locale.java.

Bug: 2608742
Bug: 2608750
Change-Id: I2171789058c8116eacd7e5815bd483f0bc07c69b
libcore/icu/src/main/java/com/ibm/icu4jni/text/RuleBasedCollator.java
libcore/luni/src/main/java/java/util/Locale.java
libcore/luni/src/test/java/java/text/CollatorTest.java
libcore/text/src/main/java/java/text/RuleBasedCollator.java
libcore/tools/runner/expectations/brokentests.txt