harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Ellison (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (HARMONY-1723) [classlib][swing/beans] TransferHandlerTest failure.
Date Thu, 05 Oct 2006 17:20:20 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-1723?page=all ]

Tim Ellison reassigned HARMONY-1723:

    Assignee: Tim Ellison

> [classlib][swing/beans] TransferHandlerTest failure.
> ----------------------------------------------------
>                 Key: HARMONY-1723
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1723
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Oleg Khaschansky
>         Assigned To: Tim Ellison
>         Attachments: harmony-1723.patch, harmony-1723test.patch
> Unit test TransferHandlerTest.testCreateTransferable fails.
> Evaluation:
> The reason is an IntrospectionException while executing getPropertyDescriptor method
from the TransferHandler class:
> It tries to get the PropertyDescriptor for the class JButton and property name "insets",
but fails because there's no setInsets method.
> So, flavors array stays uninitialized and getTransferDataFlavors method returns null
which is a cause of a NPE.
> The fix for this issue includes also a fix for the difference of PropertyDescriptor behavior
from RI. Consider the following code:
> new PropertyDescriptor(propertyName, c.getClass(), "1", null);
> This code will always throw IntrospectionException on Harmony, but will return the valid
property descriptor with the getter method on RI.

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


View raw message