You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexey Petrenko (JIRA)" <ji...@apache.org> on 2007/03/01 21:01:53 UTC

[jira] Resolved: (HARMONY-2617) [classlib][swing] javax.swing.JTextPane(null) does not throw unspecified NPE

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

Alexey Petrenko resolved HARMONY-2617.
--------------------------------------

    Resolution: Fixed

The patch has been applied.
Please verify.

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