You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Mark Hindess (JIRA)" <ji...@apache.org> on 2007/01/13 23:21:27 UTC
[jira] Commented: (HARMONY-2653) [classlib][swing]
javax.swing.plaf.basic.BasicListUI.getPreferredSize(new JFileChooser() )
throws unspecified ClassCastException
[ https://issues.apache.org/jira/browse/HARMONY-2653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12464538 ]
Mark Hindess commented on HARMONY-2653:
---------------------------------------
I get a stack overflow running this test (with or without the fix).
> [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
> Attachments: BasicListUI-patch.txt, 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.
-
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