harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexei Zakharov (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-2033) [classlib][awt] DataFlavor equals, getParameter, isMimeTypeEqual and selectBestTextFlavor throw unexpected exceptions
Date Tue, 13 Feb 2007 09:36:05 GMT

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

Alexei Zakharov updated HARMONY-2033:
-------------------------------------

    Patch Info: [Patch Available]

> [classlib][awt] DataFlavor equals, getParameter, isMimeTypeEqual and selectBestTextFlavor
throw unexpected exceptions
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2033
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2033
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Denis Kishenko
>         Attachments: HARMONY-2033-DataFlavor.patch, HARMONY-2033-DataFlavorTest.patch
>
>
> 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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message