harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Krivenko (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-2617) [classlib][swing] javax.swing.JTextPane(null) does not throw unspecified NPE
Date Fri, 02 Mar 2007 11:22:51 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-2617?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12477265
] 

Sergey Krivenko commented on HARMONY-2617:
------------------------------------------

Verified

> [classlib][swing] javax.swing.JTextPane(null) does not throw unspecified NPE
> ----------------------------------------------------------------------------
>
>                 Key: HARMONY-2617
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2617
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Pavel Dolgov
>         Assigned To: Alexey Petrenko
>            Priority: Minor
>         Attachments: Harmony-2617-JTextPane.patch, Harmony-2617-JTextPane.patch, Harmony-2617-JTextPaneTest.patch
>
>
> Test case:
> --------------
> import javax.swing.JTextPane;
> import junit.framework.TestCase;
> public class TheTest extends TestCase {
>     public static void main(String args[]) {
>         junit.textui.TestRunner.run(TheTest.class);
>     }
>     public void testcase1() {
>         try {
>             new JTextPane(null);
>             fail("NPE expected");
>         } catch (NullPointerException e) {
>         }
>     }
> }

-- 
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