You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Mark Hindess (JIRA)" <ji...@apache.org> on 2007/01/12 14:39:27 UTC
[jira] Resolved: (HARMONY-2065) [classlib][awt]
UnsupportedFlavorException throws unexpected NPE
[ 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