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] Commented: (HARMONY-2033) [classlib][awt] DataFlavor equals, getParameter, isMimeTypeEqual and selectBestTextFlavor throw unexpected exceptions
Date Thu, 14 Dec 2006 16:36:22 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-2033?page=comments#action_12458536 ] 
            
Alexei Zakharov commented on HARMONY-2033:
------------------------------------------

I've got the following while trying to run the above test on the most recent classlib build:

on DRLVM:
..E..E.E
Time: 0.03
There were 3 errors:
1) testGetParameter(JIRA2033)java.lang.NullPointerException
        at java.awt.datatransfer.DataFlavor.getParameter(DataFlavor.java:260)
        at JIRA2033.testGetParameter(JIRA2033.java:14)
        at java.lang.reflect.VMReflection.invokeMethod(Native Method)
2) testIsMimeTypeEqual2(JIRA2033)java.lang.NullPointerException
        at java.awt.datatransfer.DataFlavor.isMimeTypeEqual(DataFlavor.java)
        at JIRA2033.testIsMimeTypeEqual2(JIRA2033.java:24)
        at java.lang.reflect.VMReflection.invokeMethod(Native Method)
3) testSelectBestTextFlavor(JIRA2033)java.lang.NullPointerException
        at java.awt.datatransfer.DataFlavor.isFlavorTextType(DataFlavor.java:464)
        at java.awt.datatransfer.DataFlavor.fetchTextFlavors(DataFlavor.java:686)
        at java.awt.datatransfer.DataFlavor.sortTextFlavorsByType(DataFlavor.java:668)
        at java.awt.datatransfer.DataFlavor.selectBestTextFlavor(DataFlavor.java:531)
        at JIRA2033.testSelectBestTextFlavor(JIRA2033.java:28)
        at java.lang.reflect.VMReflection.invokeMethod(Native Method)

FAILURES!!!
Tests run: 5,  Failures: 0,  Errors: 3

on IBM VME:
Error: java.lang.IllegalArgumentException: Invalid % sequence (%CL) at: 29

I have no idea what the last is about.

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