harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Denis Kishenko (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-2033) [classlib][awt] DataFlavor equals, getParameter, isMimeTypeEqual and selectBestTextFlavor throw unexpected exceptions
Date Wed, 01 Nov 2006 10:18:19 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-2033?page=comments#action_12446195 ] 
            
Denis Kishenko commented on HARMONY-2033:
-----------------------------------------

Actually DataFlavor.equals("") is ok it has been already fixed
http://issues.apache.org/jira/browse/HARMONY-1477

> [classlib][awt] DataFlavor equals, getParameter, isMimeTypeEqual and selectBestTextFlavor
throw unexpected exceptions
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2033
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2033
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Denis Kishenko
>
> DataFlavor methods equals, getParameter, isMimeTypeEqual and selectBestTextFlavor illegally
throw exceptions while RI doesn't throw exceptions.Spec doesn't mention any exceptions.
> ========== Test ==========
> import java.awt.datatransfer.DataFlavor;
> import junit.framework.TestCase;
> public class bug7489 extends TestCase {
>     
>     public void testEquals() {
>         DataFlavor df = new DataFlavor();
>         df.equals("");
>     }
>     public void testGetParameter() {
>         DataFlavor df = new DataFlavor();
>         df.getParameter("");
>     }
>     public void testIsMimeTypeEqual1() {
>         DataFlavor df = new DataFlavor();
>         df.isMimeTypeEqual("");
>     }
>     public void testIsMimeTypeEqual2() {
>         DataFlavor df = new DataFlavor();
>         df.isMimeTypeEqual(new DataFlavor());
>     }
>     public void testSelectBestTextFlavor() {
>         DataFlavor[] df = new DataFlavor[] {new DataFlavor()};
>         DataFlavor.selectBestTextFlavor(df);
>     }
> }
> ========== RI =========
> all successful
> ======= Harmony ======
> all failed

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

        

Mime
View raw message