Index: ChoiceFormatTest.java =================================================================== --- ChoiceFormatTest.java (revision 429253) +++ ChoiceFormatTest.java (working copy) @@ -262,6 +262,9 @@ buf.setLength(0); r = f1.format(3, buf, field).toString(); assertEquals("Wrong choice for 3", "Greater than two", r); + + // Regression test for HARMONY-1081 + new ChoiceFormat("|").format(1, new StringBuffer(), new FieldPosition(6)); } /**