You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Denis Kishenko (JIRA)" <ji...@apache.org> on 2006/11/01 11:01:16 UTC
[jira] Created: (HARMONY-2033) [classlib][awt] DataFlavor equals,
getParameter, isMimeTypeEqual and selectBestTextFlavor throw unexpected
exceptions
[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
[jira] Commented: (HARMONY-2033) [classlib][awt] DataFlavor equals,
getParameter, isMimeTypeEqual and selectBestTextFlavor throw unexpected
exceptions
Posted by "Denis Kishenko (JIRA)" <ji...@apache.org>.
[ 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