You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Andrey Pavlenko (JIRA)" <ji...@apache.org> on 2007/03/02 16:39:54 UTC
[jira] Commented: (HARMONY-2033) [classlib][awt] DataFlavor equals,
getParameter, isMimeTypeEqual and selectBestTextFlavor throw unexpected
exceptions
[ https://issues.apache.org/jira/browse/HARMONY-2033?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12477330 ]
Andrey Pavlenko commented on HARMONY-2033:
------------------------------------------
Alexey, the patch is applied as expected. You can close the issue. Thanks.
> [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
> Assigned To: Alexey Petrenko
> 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.