Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Won't Fix
-
None
-
None
-
None
-
Patch Available
Description
There is no mention of any exception in the specification. But RI throws unspecified NPE for getApproveButtonMnemonic(null) while Harmony does not.
Test case to reproduce, that passes on RI and fails on Harmony:
----------- test.java ----------------
import javax.swing.JFileChooser;
import javax.swing.plaf.basic.BasicFileChooserUI;
import junit.framework.TestCase;
import junit.textui.TestRunner;
public class test extends TestCase {
public static void main(String args[])
{ TestRunner.run(test.class); } public void testRun() {
try
catch (NullPointerException e)
{ // expected } }
}
----------------------------------------
I suppose this case can be treated as non-bug difference.
Note: The same case with getApproveButtonToolTipText(null) and cb.getApproveButtonText((JFileChooser) null).