diff options
-rw-r--r-- | luni/src/test/java/libcore/java/text/DateFormatSymbolsTest.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/luni/src/test/java/libcore/java/text/DateFormatSymbolsTest.java b/luni/src/test/java/libcore/java/text/DateFormatSymbolsTest.java index 4d9c87d..992e352 100644 --- a/luni/src/test/java/libcore/java/text/DateFormatSymbolsTest.java +++ b/luni/src/test/java/libcore/java/text/DateFormatSymbolsTest.java @@ -67,9 +67,10 @@ public class DateFormatSymbolsTest extends junit.framework.TestCase { assertEquals("stycznia", formatDate(pl, "MMMM", originalDfs)); assertEquals("stycze\u0144", formatDate(pl, "LLLL", originalDfs)); - // Whereas the deserialized object can't, because it lost the strings... + // But the deserialized object is screwed because the RI's serialized form doesn't + // contain the locale or the necessary strings. Don't serialize DateFormatSymbols, folks! assertEquals("stycznia", formatDate(pl, "MMMM", deserializedDfs)); - assertEquals("stycznia", formatDate(pl, "LLLL", deserializedDfs)); + assertEquals("January", formatDate(pl, "LLLL", deserializedDfs)); } private String formatDate(Locale l, String fmt, DateFormatSymbols dfs) { |