harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Petrenko (JIRA)" <j...@apache.org>
Subject [jira] Closed: (HARMONY-2653) [classlib][swing] javax.swing.plaf.basic.BasicListUI.getPreferredSize(new JFileChooser() ) throws unspecified ClassCastException
Date Tue, 06 Mar 2007 14:37:24 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-2653?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Alexey Petrenko closed HARMONY-2653.
------------------------------------


> [classlib][swing] javax.swing.plaf.basic.BasicListUI.getPreferredSize(new JFileChooser()
) throws unspecified ClassCastException
> --------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2653
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2653
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Alexander Simbirtsev
>         Assigned To: Alexey Petrenko
>         Attachments: BasicListUI-patch.txt, H2653-BasicListUITest.patch, H2653-BasicListUITest.patch
>
>
> There is no mention of any exception in the specification.
> Harmony throws unspecified ClassCastException for getPreferredSize(new JFileChooser())
while RI throws unspecified NPE.
> Use the following code to reproduce:
> import javax.swing.JFileChooser;
> import javax.swing.plaf.basic.BasicListUI;
> import junit.framework.TestCase;
> public class Test extends TestCase {
>     public void testcase1() {
>         try {                     
>             BasicListUI bl = new BasicListUI();
>             bl.getPreferredSize(new JFileChooser() );               
>         } catch (NullPointerException e) {   
>             //expected
>         } catch (ClassCastException e) {
>             fail("No NPE thrown");
>         }
>     }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message