You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Ilya Okomin (JIRA)" <ji...@apache.org> on 2006/12/27 13:49:21 UTC

[jira] Created: (HARMONY-2896) [classlib][swing] Compatibility: javax.swing.plaf.basic.BasicComboBoxUI. getAccessibleChildrenCount(null) does not throw unspecified NPE

[classlib][swing] Compatibility: javax.swing.plaf.basic.BasicComboBoxUI. getAccessibleChildrenCount(null) does not throw unspecified NPE
----------------------------------------------------------------------------------------------------------------------------------------

                 Key: HARMONY-2896
                 URL: http://issues.apache.org/jira/browse/HARMONY-2896
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Ilya Okomin
            Priority: Minor


There is no mention of any exception in the specification.
RI throws unspecified NPE for javax.swing.plaf.basic.BasicComboBoxUI.getAccessibleChildrenCount(null) while Harmony does not.
Next test case passes on RI and fails on Harmony:
--------- test.java ----------
import javax.swing.plaf.basic.BasicComboBoxUI;

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() {
        BasicComboBoxUI cb = new BasicComboBoxUI();
        try {
            cb.getAccessibleChildrenCount(null);
            fail("NullPointerException expected");
        } catch (NullPointerException e) {
            // expected
        }
    }

}
--------------------------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Resolved: (HARMONY-2896) [classlib][swing] Compatibility: javax.swing.plaf.basic.BasicComboBoxUI. getAccessibleChildrenCount(null) does not throw unspecified NPE

Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2896?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Petrenko resolved HARMONY-2896.
--------------------------------------

    Resolution: Fixed

The patch has been applied.
Please verify.

> [classlib][swing] Compatibility: javax.swing.plaf.basic.BasicComboBoxUI. getAccessibleChildrenCount(null) does not throw unspecified NPE
> ----------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2896
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2896
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Ilya Okomin
>         Assigned To: Alexey Petrenko
>            Priority: Minor
>         Attachments: Harmony-2896-Make.patch, Harmony-2896-Test.patch, Harmony-2896.patch
>
>
> There is no mention of any exception in the specification.
> RI throws unspecified NPE for javax.swing.plaf.basic.BasicComboBoxUI.getAccessibleChildrenCount(null) while Harmony does not.
> Next test case passes on RI and fails on Harmony:
> --------- test.java ----------
> import javax.swing.plaf.basic.BasicComboBoxUI;
> 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() {
>         BasicComboBoxUI cb = new BasicComboBoxUI();
>         try {
>             cb.getAccessibleChildrenCount(null);
>             fail("NullPointerException expected");
>         } catch (NullPointerException e) {
>             // expected
>         }
>     }
> }
> --------------------------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (HARMONY-2896) [classlib][swing] Compatibility: javax.swing.plaf.basic.BasicComboBoxUI. getAccessibleChildrenCount(null) does not throw unspecified NPE

Posted by "Vasily Zakharov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-2896?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12462822 ] 

Vasily Zakharov commented on HARMONY-2896:
------------------------------------------

I'll look into this issue.


> [classlib][swing] Compatibility: javax.swing.plaf.basic.BasicComboBoxUI. getAccessibleChildrenCount(null) does not throw unspecified NPE
> ----------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2896
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2896
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Ilya Okomin
>            Priority: Minor
>
> There is no mention of any exception in the specification.
> RI throws unspecified NPE for javax.swing.plaf.basic.BasicComboBoxUI.getAccessibleChildrenCount(null) while Harmony does not.
> Next test case passes on RI and fails on Harmony:
> --------- test.java ----------
> import javax.swing.plaf.basic.BasicComboBoxUI;
> 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() {
>         BasicComboBoxUI cb = new BasicComboBoxUI();
>         try {
>             cb.getAccessibleChildrenCount(null);
>             fail("NullPointerException expected");
>         } catch (NullPointerException e) {
>             // expected
>         }
>     }
> }
> --------------------------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (HARMONY-2896) [classlib][swing] Compatibility: javax.swing.plaf.basic.BasicComboBoxUI. getAccessibleChildrenCount(null) does not throw unspecified NPE

Posted by "Vasily Zakharov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-2896?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12462926 ] 

Vasily Zakharov commented on HARMONY-2896:
------------------------------------------

HARMONY-2946 created to reflect the difference in getAccessibleChildrenCount() return value.


> [classlib][swing] Compatibility: javax.swing.plaf.basic.BasicComboBoxUI. getAccessibleChildrenCount(null) does not throw unspecified NPE
> ----------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2896
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2896
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Ilya Okomin
>            Priority: Minor
>         Attachments: Harmony-2896-Make.patch, Harmony-2896-Test.patch, Harmony-2896.patch
>
>
> There is no mention of any exception in the specification.
> RI throws unspecified NPE for javax.swing.plaf.basic.BasicComboBoxUI.getAccessibleChildrenCount(null) while Harmony does not.
> Next test case passes on RI and fails on Harmony:
> --------- test.java ----------
> import javax.swing.plaf.basic.BasicComboBoxUI;
> 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() {
>         BasicComboBoxUI cb = new BasicComboBoxUI();
>         try {
>             cb.getAccessibleChildrenCount(null);
>             fail("NullPointerException expected");
>         } catch (NullPointerException e) {
>             // expected
>         }
>     }
> }
> --------------------------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (HARMONY-2896) [classlib][swing] Compatibility: javax.swing.plaf.basic.BasicComboBoxUI. getAccessibleChildrenCount(null) does not throw unspecified NPE

Posted by "Vasily Zakharov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-2896?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12462924 ] 

Vasily Zakharov commented on HARMONY-2896:
------------------------------------------

Attached make patch to remove javax.swing.plaf.basic.BasicComboBoxUITest from exclude list.

I'm not sure if this should be applied, as testInstallUninstallUI test case that test contains fails for now.


> [classlib][swing] Compatibility: javax.swing.plaf.basic.BasicComboBoxUI. getAccessibleChildrenCount(null) does not throw unspecified NPE
> ----------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2896
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2896
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Ilya Okomin
>            Priority: Minor
>         Attachments: Harmony-2896-Make.patch, Harmony-2896-Test.patch, Harmony-2896.patch
>
>
> There is no mention of any exception in the specification.
> RI throws unspecified NPE for javax.swing.plaf.basic.BasicComboBoxUI.getAccessibleChildrenCount(null) while Harmony does not.
> Next test case passes on RI and fails on Harmony:
> --------- test.java ----------
> import javax.swing.plaf.basic.BasicComboBoxUI;
> 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() {
>         BasicComboBoxUI cb = new BasicComboBoxUI();
>         try {
>             cb.getAccessibleChildrenCount(null);
>             fail("NullPointerException expected");
>         } catch (NullPointerException e) {
>             // expected
>         }
>     }
> }
> --------------------------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (HARMONY-2896) [classlib][swing] Compatibility: javax.swing.plaf.basic.BasicComboBoxUI. getAccessibleChildrenCount(null) does not throw unspecified NPE

Posted by "Vasily Zakharov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-2896?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12464631 ] 

Vasily Zakharov commented on HARMONY-2896:
------------------------------------------

Thanks Alexey, the patch is fine.


> [classlib][swing] Compatibility: javax.swing.plaf.basic.BasicComboBoxUI. getAccessibleChildrenCount(null) does not throw unspecified NPE
> ----------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2896
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2896
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Ilya Okomin
>         Assigned To: Alexey Petrenko
>            Priority: Minor
>         Attachments: Harmony-2896-Make.patch, Harmony-2896-Test.patch, Harmony-2896.patch
>
>
> There is no mention of any exception in the specification.
> RI throws unspecified NPE for javax.swing.plaf.basic.BasicComboBoxUI.getAccessibleChildrenCount(null) while Harmony does not.
> Next test case passes on RI and fails on Harmony:
> --------- test.java ----------
> import javax.swing.plaf.basic.BasicComboBoxUI;
> 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() {
>         BasicComboBoxUI cb = new BasicComboBoxUI();
>         try {
>             cb.getAccessibleChildrenCount(null);
>             fail("NullPointerException expected");
>         } catch (NullPointerException e) {
>             // expected
>         }
>     }
> }
> --------------------------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (HARMONY-2896) [classlib][swing] Compatibility: javax.swing.plaf.basic.BasicComboBoxUI. getAccessibleChildrenCount(null) does not throw unspecified NPE

Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2896?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Petrenko closed HARMONY-2896.
------------------------------------


> [classlib][swing] Compatibility: javax.swing.plaf.basic.BasicComboBoxUI. getAccessibleChildrenCount(null) does not throw unspecified NPE
> ----------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2896
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2896
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Ilya Okomin
>         Assigned To: Alexey Petrenko
>            Priority: Minor
>         Attachments: Harmony-2896-Make.patch, Harmony-2896-Test.patch, Harmony-2896.patch
>
>
> There is no mention of any exception in the specification.
> RI throws unspecified NPE for javax.swing.plaf.basic.BasicComboBoxUI.getAccessibleChildrenCount(null) while Harmony does not.
> Next test case passes on RI and fails on Harmony:
> --------- test.java ----------
> import javax.swing.plaf.basic.BasicComboBoxUI;
> 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() {
>         BasicComboBoxUI cb = new BasicComboBoxUI();
>         try {
>             cb.getAccessibleChildrenCount(null);
>             fail("NullPointerException expected");
>         } catch (NullPointerException e) {
>             // expected
>         }
>     }
> }
> --------------------------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Assigned: (HARMONY-2896) [classlib][swing] Compatibility: javax.swing.plaf.basic.BasicComboBoxUI. getAccessibleChildrenCount(null) does not throw unspecified NPE

Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2896?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Petrenko reassigned HARMONY-2896:
----------------------------------------

    Assignee: Alexey Petrenko

> [classlib][swing] Compatibility: javax.swing.plaf.basic.BasicComboBoxUI. getAccessibleChildrenCount(null) does not throw unspecified NPE
> ----------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2896
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2896
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Ilya Okomin
>         Assigned To: Alexey Petrenko
>            Priority: Minor
>         Attachments: Harmony-2896-Make.patch, Harmony-2896-Test.patch, Harmony-2896.patch
>
>
> There is no mention of any exception in the specification.
> RI throws unspecified NPE for javax.swing.plaf.basic.BasicComboBoxUI.getAccessibleChildrenCount(null) while Harmony does not.
> Next test case passes on RI and fails on Harmony:
> --------- test.java ----------
> import javax.swing.plaf.basic.BasicComboBoxUI;
> 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() {
>         BasicComboBoxUI cb = new BasicComboBoxUI();
>         try {
>             cb.getAccessibleChildrenCount(null);
>             fail("NullPointerException expected");
>         } catch (NullPointerException e) {
>             // expected
>         }
>     }
> }
> --------------------------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (HARMONY-2896) [classlib][swing] Compatibility: javax.swing.plaf.basic.BasicComboBoxUI. getAccessibleChildrenCount(null) does not throw unspecified NPE

Posted by "Vasily Zakharov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-2896?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12462915 ] 

Vasily Zakharov commented on HARMONY-2896:
------------------------------------------

Interesting is effect remains the same if getAccessibleChildrenCount() method parameter is set to non-null value, for example "new JComponent() {}".
In other words NPE occuring on RI is caused by some other field, probably comboBox, like in HARMONY-2898.

Consider the following simple test:

import javax.swing.JComboBox;
import javax.swing.JComponent;
import javax.swing.plaf.basic.BasicComboBoxUI;

public class Test {
    public static void main(String[] args) throws Exception {
        BasicComboBoxUI ui = new BasicComboBoxUI();
        JComponent c = new JComponent() {};
        // ui.installUI(new JComboBox());
        System.out.println(ui.getAccessibleChildrenCount(c));
        System.out.println(ui.getAccessibleChildrenCount(null));
    }
}

Output on RI:

Exception in thread "main" java.lang.NullPointerException
        at javax.swing.plaf.basic.BasicComboBoxUI.getAccessibleChildrenCount(BasicComboBoxUI.java:883)
        at Test.main(Test.java:10)

On Harmony:

0
0

If the installUI() call is uncommented, the output on RI changes to:

1
1

So probably the field checked is really comboBox, initialized by installUI().


> [classlib][swing] Compatibility: javax.swing.plaf.basic.BasicComboBoxUI. getAccessibleChildrenCount(null) does not throw unspecified NPE
> ----------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2896
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2896
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Ilya Okomin
>            Priority: Minor
>
> There is no mention of any exception in the specification.
> RI throws unspecified NPE for javax.swing.plaf.basic.BasicComboBoxUI.getAccessibleChildrenCount(null) while Harmony does not.
> Next test case passes on RI and fails on Harmony:
> --------- test.java ----------
> import javax.swing.plaf.basic.BasicComboBoxUI;
> 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() {
>         BasicComboBoxUI cb = new BasicComboBoxUI();
>         try {
>             cb.getAccessibleChildrenCount(null);
>             fail("NullPointerException expected");
>         } catch (NullPointerException e) {
>             // expected
>         }
>     }
> }
> --------------------------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HARMONY-2896) [classlib][swing] Compatibility: javax.swing.plaf.basic.BasicComboBoxUI. getAccessibleChildrenCount(null) does not throw unspecified NPE

Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2896?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Petrenko updated HARMONY-2896:
-------------------------------------

    Patch Info: [Patch Available]

> [classlib][swing] Compatibility: javax.swing.plaf.basic.BasicComboBoxUI. getAccessibleChildrenCount(null) does not throw unspecified NPE
> ----------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2896
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2896
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Ilya Okomin
>            Priority: Minor
>         Attachments: Harmony-2896-Make.patch, Harmony-2896-Test.patch, Harmony-2896.patch
>
>
> There is no mention of any exception in the specification.
> RI throws unspecified NPE for javax.swing.plaf.basic.BasicComboBoxUI.getAccessibleChildrenCount(null) while Harmony does not.
> Next test case passes on RI and fails on Harmony:
> --------- test.java ----------
> import javax.swing.plaf.basic.BasicComboBoxUI;
> 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() {
>         BasicComboBoxUI cb = new BasicComboBoxUI();
>         try {
>             cb.getAccessibleChildrenCount(null);
>             fail("NullPointerException expected");
>         } catch (NullPointerException e) {
>             // expected
>         }
>     }
> }
> --------------------------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (HARMONY-2896) [classlib][swing] Compatibility: javax.swing.plaf.basic.BasicComboBoxUI. getAccessibleChildrenCount(null) does not throw unspecified NPE

Posted by "Vasily Zakharov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-2896?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12462923 ] 

Vasily Zakharov commented on HARMONY-2896:
------------------------------------------

Attached fix and test patches.


> [classlib][swing] Compatibility: javax.swing.plaf.basic.BasicComboBoxUI. getAccessibleChildrenCount(null) does not throw unspecified NPE
> ----------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2896
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2896
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Ilya Okomin
>            Priority: Minor
>         Attachments: Harmony-2896-Make.patch, Harmony-2896-Test.patch, Harmony-2896.patch
>
>
> There is no mention of any exception in the specification.
> RI throws unspecified NPE for javax.swing.plaf.basic.BasicComboBoxUI.getAccessibleChildrenCount(null) while Harmony does not.
> Next test case passes on RI and fails on Harmony:
> --------- test.java ----------
> import javax.swing.plaf.basic.BasicComboBoxUI;
> 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() {
>         BasicComboBoxUI cb = new BasicComboBoxUI();
>         try {
>             cb.getAccessibleChildrenCount(null);
>             fail("NullPointerException expected");
>         } catch (NullPointerException e) {
>             // expected
>         }
>     }
> }
> --------------------------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HARMONY-2896) [classlib][swing] Compatibility: javax.swing.plaf.basic.BasicComboBoxUI. getAccessibleChildrenCount(null) does not throw unspecified NPE

Posted by "Vasily Zakharov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2896?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vasily Zakharov updated HARMONY-2896:
-------------------------------------

    Attachment: Harmony-2896.patch

> [classlib][swing] Compatibility: javax.swing.plaf.basic.BasicComboBoxUI. getAccessibleChildrenCount(null) does not throw unspecified NPE
> ----------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2896
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2896
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Ilya Okomin
>            Priority: Minor
>         Attachments: Harmony-2896-Make.patch, Harmony-2896-Test.patch, Harmony-2896.patch
>
>
> There is no mention of any exception in the specification.
> RI throws unspecified NPE for javax.swing.plaf.basic.BasicComboBoxUI.getAccessibleChildrenCount(null) while Harmony does not.
> Next test case passes on RI and fails on Harmony:
> --------- test.java ----------
> import javax.swing.plaf.basic.BasicComboBoxUI;
> 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() {
>         BasicComboBoxUI cb = new BasicComboBoxUI();
>         try {
>             cb.getAccessibleChildrenCount(null);
>             fail("NullPointerException expected");
>         } catch (NullPointerException e) {
>             // expected
>         }
>     }
> }
> --------------------------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HARMONY-2896) [classlib][swing] Compatibility: javax.swing.plaf.basic.BasicComboBoxUI. getAccessibleChildrenCount(null) does not throw unspecified NPE

Posted by "Vasily Zakharov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2896?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vasily Zakharov updated HARMONY-2896:
-------------------------------------

    Attachment: Harmony-2896-Make.patch
                Harmony-2896-Test.patch

> [classlib][swing] Compatibility: javax.swing.plaf.basic.BasicComboBoxUI. getAccessibleChildrenCount(null) does not throw unspecified NPE
> ----------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2896
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2896
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Ilya Okomin
>            Priority: Minor
>         Attachments: Harmony-2896-Make.patch, Harmony-2896-Test.patch, Harmony-2896.patch
>
>
> There is no mention of any exception in the specification.
> RI throws unspecified NPE for javax.swing.plaf.basic.BasicComboBoxUI.getAccessibleChildrenCount(null) while Harmony does not.
> Next test case passes on RI and fails on Harmony:
> --------- test.java ----------
> import javax.swing.plaf.basic.BasicComboBoxUI;
> 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() {
>         BasicComboBoxUI cb = new BasicComboBoxUI();
>         try {
>             cb.getAccessibleChildrenCount(null);
>             fail("NullPointerException expected");
>         } catch (NullPointerException e) {
>             // expected
>         }
>     }
> }
> --------------------------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira