You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Oleg Khaschansky (JIRA)" <ji...@apache.org> on 2006/10/05 14:00:19 UTC

[jira] Created: (HARMONY-1723) [classlib][swing/beans] TransferHandlerTest failure.

[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


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

        

[jira] Commented: (HARMONY-1723) [classlib][swing/beans] TransferHandlerTest failure.

Posted by "Oleg Khaschansky (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-1723?page=comments#action_12440844 ] 
            
Oleg Khaschansky commented on HARMONY-1723:
-------------------------------------------

Verified. Thanks Tim.

> [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-1723a.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

        

[jira] Updated: (HARMONY-1723) [classlib][swing/beans] TransferHandlerTest failure.

Posted by "Oleg Khaschansky (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1723?page=all ]

Oleg Khaschansky updated HARMONY-1723:
--------------------------------------

    Attachment: harmony-1723a.patch

harmony-1723a.patch is a patch for the TransferHandler only which doesn't affect beans (revision 453165). Please, DO NOT apply harmony-1723test.patch with harmony-1723a.

> [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-1723a.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

        

[jira] Updated: (HARMONY-1723) [classlib][swing/beans] TransferHandlerTest failure.

Posted by "Oleg Khaschansky (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1723?page=all ]

Oleg Khaschansky updated HARMONY-1723:
--------------------------------------

    Attachment: harmony-1723test.patch

patch for the PropertyDescriptorTest

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

        

[jira] Resolved: (HARMONY-1723) [classlib][swing/beans] TransferHandlerTest failure.

Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1723?page=all ]

Tim Ellison resolved HARMONY-1723.
----------------------------------

    Resolution: Fixed

Patch applied to SWING module at repo revision r454168.

Please check that it was applied as you expected.


> [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-1723a.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

        

[jira] Updated: (HARMONY-1723) [classlib][swing/beans] TransferHandlerTest failure.

Posted by "Oleg Khaschansky (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1723?page=all ]

Oleg Khaschansky updated HARMONY-1723:
--------------------------------------

    Attachment: harmony-1723.patch

patch for this issue

> [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
>         Attachments: harmony-1723.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

        

[jira] Assigned: (HARMONY-1723) [classlib][swing/beans] TransferHandlerTest failure.

Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
     [ 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

        

[jira] Closed: (HARMONY-1723) [classlib][swing/beans] TransferHandlerTest failure.

Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1723?page=all ]

Tim Ellison closed HARMONY-1723.
--------------------------------


Verified by Oleg.


> [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-1723a.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