You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexander D Shipilov (JIRA)" <ji...@apache.org> on 2006/11/29 20:03:22 UTC

[jira] Updated: (HARMONY-2067) [classlib][awt] Clipboard.setContents(null, null) throws unexpected NPE

     [ http://issues.apache.org/jira/browse/HARMONY-2067?page=all ]

Alexander D Shipilov updated HARMONY-2067:
------------------------------------------

    Attachment: Clipboard2067.patch

Proposal fix

> [classlib][awt] Clipboard.setContents(null, null) throws unexpected NPE
> -----------------------------------------------------------------------
>
>                 Key: HARMONY-2067
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2067
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Denis Kishenko
>         Attachments: Clipboard2067.patch, ClipboardTest2067.patch
>
>
> ========= Spec =====
> Nothing about NPE
> ========== Test =============
> import java.awt.datatransfer.*;
> public class Test {
>     public static void main(String[] argv) {
>         Clipboard localClipboard = new Clipboard("AAA");
>         localClipboard.setContents(null, null);
>         System.out.println("passed");
>     }
> }
> ======== RI ============
> passed
> =========== Harmony =======
> Uncaught exception in main:
>     java.lang.NullPointerException
>         at java.awt.datatransfer.Clipboard.setContents(Clipboard.java:68)
>         at Test.main(Test.java:6)

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