Index: modules/swing/src/test/api/java/common/javax/swing/text/MaskFormatterTest.java =================================================================== --- modules/swing/src/test/api/java/common/javax/swing/text/MaskFormatterTest.java (revision 494390) +++ modules/swing/src/test/api/java/common/javax/swing/text/MaskFormatterTest.java (working copy) @@ -22,6 +22,7 @@ import java.text.ParseException; import javax.swing.SwingTestCase; +import javax.swing.JFormattedTextField; public class MaskFormatterTest extends SwingTestCase { MaskFormatter formatter; @@ -295,4 +296,15 @@ assertTrue("Unexpected exception: " + e.getMessage(), false); } } + + public void testValueToString_Object() throws ParseException{ + // Regression for HARMONY-1742 + MaskFormatter obj = new MaskFormatter(); + obj.valueToString(new Object()); + } + public void testInstall_JFormattedTextField() { + // Regression for HARMONY-1742 + MaskFormatter obj = new MaskFormatter(); + obj.install(new JFormattedTextField()); + } }