harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Hindess (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HARMONY-2065) [classlib][awt] UnsupportedFlavorException throws unexpected NPE
Date Fri, 12 Jan 2007 13:39:27 GMT

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

Mark Hindess resolved HARMONY-2065.
-----------------------------------

    Resolution: Fixed

Applied the patches in r495568.  I modifed the test to let junit handle the exception.
(Please make patches against either the top-level or modules/awt next time not against modules.)

Please confirm that these changes resolve this issue.


> [classlib][awt] UnsupportedFlavorException throws unexpected NPE
> ----------------------------------------------------------------
>
>                 Key: HARMONY-2065
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2065
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Denis Kishenko
>         Assigned To: Mark Hindess
>         Attachments: UnsupportedFlavorException.patch, UnsupportedFlavorExceptionTest.patch
>
>
> ========== Spec ============
> public UnsupportedFlavorException(DataFlavor flavor)
> Constructs an UnsupportedFlavorException. 
> Parameters:
> flavor - the flavor object which caused the exception. May be null.
> ========= Test ===============
> import java.awt.datatransfer.*;
> public class Test {
>     public static void main(String[] argv) {
>         UnsupportedFlavorException ufe = new UnsupportedFlavorException(null);
>         System.out.println("passed");
>    }
> }
> ======== RI ========
> passed
> ====== Harmony =========
> Uncaught exception in main:
>     java.lang.NullPointerException
>         at Test.main(Test.java:5)

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

        

Mime
View raw message