Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 45027 invoked from network); 7 Jun 2010 08:16:32 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Jun 2010 08:16:32 -0000 Received: (qmail 58569 invoked by uid 500); 7 Jun 2010 08:16:31 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 58476 invoked by uid 500); 7 Jun 2010 08:16:31 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 58469 invoked by uid 99); 7 Jun 2010 08:16:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Jun 2010 08:16:31 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Jun 2010 08:16:29 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o578G7jp009853 for ; Mon, 7 Jun 2010 08:16:07 GMT Message-ID: <2038475.212601275898567347.JavaMail.jira@thor> Date: Mon, 7 Jun 2010 04:16:07 -0400 (EDT) From: "Kevin Zhou (JIRA)" To: commits@harmony.apache.org Subject: [jira] Resolved: (HARMONY-6422) StandardBeanInfo behaves differently from RI GenericBeanInfo In-Reply-To: <845084715.318741263843534424.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-6422?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kevin Zhou resolved HARMONY-6422. --------------------------------- Resolution: Fixed Patch applied at r952132, Thanks > StandardBeanInfo behaves differently from RI GenericBeanInfo > ------------------------------------------------------------ > > Key: HARMONY-6422 > URL: https://issues.apache.org/jira/browse/HARMONY-6422 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Sebb > Assignee: Kevin Zhou > Attachments: HARMONY-6422.diff, HARMONY-6422v2.diff > > > StandardBeanInfo behaves differently from RI GenericBeanInfo: > -----cut here------- > import java.beans.BeanInfo; > import java.beans.Introspector; > public class BeanTest { > public static void main(String[] args) throws Exception { > BeanInfo beanInfo = Introspector.getBeanInfo(BeanTest.class); > System.out.println(beanInfo.getClass().getName()); // RI=GenericBeanInfo, Harmony=StandardBeanInfo > System.out.println(beanInfo.getBeanDescriptor().getDisplayName()); // BeanTest (both) > beanInfo.getBeanDescriptor().setDisplayName("test"); > System.out.println(beanInfo.getBeanDescriptor().getDisplayName());// test (RI) BeanTest (Harmony) > } > } > -----cut here------- > This is because the RI always returns the same instance from getBeanDescriptor() whereas Harmony returns a new instance. > I don't know if this is a spec. violation or not, but the behaviour is different and unexpected, so should at least be documented in the BeanInfo Javadoc. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.