Skip to content

Commit

Permalink
8329354: java/text/Format/MessageFormat/CompactSubFormats.java fails
Browse files Browse the repository at this point in the history
Reviewed-by: jlu, naoto
  • Loading branch information
DamonFool committed Apr 1, 2024
1 parent c2979c1 commit ecd2b71
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ public void applyPatternTest() {
public void recognizedCompactStylesTest() {
// An exception won't be thrown since 'compact_regular' will be interpreted as a
// subformatPattern.
assertEquals(new DecimalFormat("compact_regular"),
DecimalFormatSymbols symbols = new DecimalFormatSymbols(Locale.US);
assertEquals(new DecimalFormat("compact_regular", symbols),
new MessageFormat("{0,number,compact_regular}", Locale.US).getFormatsByArgumentIndex()[0]);
}

Expand Down

1 comment on commit ecd2b71

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.