Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 38889 invoked from network); 5 Oct 2006 12:08:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Oct 2006 12:08:16 -0000 Received: (qmail 27555 invoked by uid 500); 5 Oct 2006 12:08:13 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 27522 invoked by uid 500); 5 Oct 2006 12:08:13 -0000 Mailing-List: contact harmony-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-commits@incubator.apache.org Received: (qmail 27402 invoked by uid 99); 5 Oct 2006 12:08:12 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Oct 2006 05:08:12 -0700 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received: from [209.237.227.198] ([209.237.227.198:40927] helo=brutus.apache.org) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 81/24-20288-D95F4254 for ; Thu, 05 Oct 2006 05:08:01 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1D7C67142D1 for ; Thu, 5 Oct 2006 05:06:21 -0700 (PDT) Message-ID: <16488954.1160049981118.JavaMail.root@brutus> Date: Thu, 5 Oct 2006 05:06:21 -0700 (PDT) From: "Oleg Khaschansky (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Updated: (HARMONY-1723) [classlib][swing/beans] TransferHandlerTest failure. In-Reply-To: <33117265.1160049619587.JavaMail.root@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ 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