harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Simbirtsev (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-2653) [classlib][swing] javax.swing.plaf.basic.BasicListUI.getPreferredSize(new JFileChooser() ) throws unspecified ClassCastException
Date Tue, 12 Dec 2006 15:05:22 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-2653?page=all ]

Alexander Simbirtsev updated HARMONY-2653:
------------------------------------------

    Summary: [classlib][swing] javax.swing.plaf.basic.BasicListUI.getPreferredSize(new JFileChooser()
) throws unspecified ClassCastException  (was: [classlib][swing] javax.swing.plaf.basic.BasicArrowButton
doesn't use the 'highlight' parameter from the constructor when painting itself)

> [classlib][swing] javax.swing.plaf.basic.BasicListUI.getPreferredSize(new JFileChooser()
) throws unspecified ClassCastException
> --------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2653
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2653
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Alexander Simbirtsev
>
> 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.
-
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

        

Mime
View raw message