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] Created: (HARMONY-2033) [classlib][awt] DataFlavor equals, getParameter, isMimeTypeEqual and selectBestTextFlavor throw unexpected exceptions
Date Wed, 01 Nov 2006 10:01:16 GMT
[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