--- old/test/jdk/java/text/Format/CompactNumberFormat/TestCompactNumber.java 2019-03-06 14:52:30.655000000 +0530 +++ new/test/jdk/java/text/Format/CompactNumberFormat/TestCompactNumber.java 2019-03-06 14:52:30.139000000 +0530 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -22,7 +22,7 @@ */ /* * @test - * @bug 8177552 + * @bug 8177552 8217721 * @summary Checks the functioning of compact number format * @modules jdk.localedata * @run testng/othervm TestCompactNumber @@ -528,6 +528,11 @@ .getCompactNumberInstance(l, NumberFormat.Style.LONG).format(10000)); } + @Test(expectedExceptions = IllegalArgumentException.class) + public void testFormatWithNullParam() { + FORMAT_EN_US_SHORT.format(null); + } + @Test(dataProvider = "format") public void testFormat(NumberFormat cnf, Object number, String expected) {