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/02/06 13:55:05 UTC

[jira] Assigned: (HARMONY-2782) [classlib][swing] j.s.text.DefaultCaret.install doesn't throw NPE whereas RI does

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

Alexey Petrenko reassigned HARMONY-2782:
----------------------------------------

    Assignee: Alexey Petrenko

> [classlib][swing] j.s.text.DefaultCaret.install doesn't throw NPE whereas RI does
> ---------------------------------------------------------------------------------
>
>                 Key: HARMONY-2782
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2782
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Alexey A. Ivanov
>         Assigned To: Alexey Petrenko
>            Priority: Minor
>         Attachments: H2782-DefaultCaretTest.patch, H2782-javax.swing.text.patch, H2782-o.a.h.awt.text.TextCaret.patch
>
>
> javax.swing.text.DefaultCaret.install(null) works silently on Harmony whereas RI throws NullPointerException.
> ======= Code to Reproduce =======
> import javax.swing.text.DefaultCaret;
> public class Test {
>     public static void main(String[] args) {
>         new DefaultCaret().install(null);
>         System.err.println("silent");
>     }
> }
> ======== end of code ======
> ------- Harmony -------
> silent
> ------- end -------
> ------- RI -------
> java.lang.NullPointerException
> 	at javax.swing.text.DefaultCaret.install(DefaultCaret.java:659)
> 	at Test.main(Test.java:5)
> ------- end -------

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