Index: C:/tools/eclipse/workspace/trunk_new/modules/swing/src/test/api/java/common/javax/swing/JFileChooserTest.java =================================================================== --- C:/tools/eclipse/workspace/trunk_new/modules/swing/src/test/api/java/common/javax/swing/JFileChooserTest.java (revision 453106) +++ C:/tools/eclipse/workspace/trunk_new/modules/swing/src/test/api/java/common/javax/swing/JFileChooserTest.java (working copy) @@ -538,8 +538,11 @@ public void testgetAccessibleContext() throws Exception { assertTrue(chooser.getAccessibleContext() instanceof JFileChooser.AccessibleJFileChooser); } - - +// regression for HARMONY-1782 + public void testGetComponentCount() throws Exception { + JFileChooser JFC = new JFileChooser (); + assertEquals(4,JFC.getComponentCount()); + } private class TestActionListener implements ActionListener { private ActionEvent event;