Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 92256 invoked from network); 19 Jan 2010 01:43:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 19 Jan 2010 01:43:18 -0000 Received: (qmail 88588 invoked by uid 500); 19 Jan 2010 01:43:17 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 88508 invoked by uid 500); 19 Jan 2010 01:43:17 -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 88439 invoked by uid 99); 19 Jan 2010 01:43:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jan 2010 01:43:17 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jan 2010 01:43:15 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 690D9234C1F1 for ; Mon, 18 Jan 2010 17:42:54 -0800 (PST) Message-ID: <712560027.325091263865374428.JavaMail.jira@brutus.apache.org> Date: Tue, 19 Jan 2010 01:42:54 +0000 (UTC) From: "Nathan Beyer (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (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:comment-tabpanel&focusedCommentId=12802027#action_12802027 ] Nathan Beyer commented on HARMONY-6422: --------------------------------------- Hmm ... a BeanDescriptor is defined as "global information", so it seems like it SHOULD record any changes, regardless of whether a new BeanDescriptor instance is returned each time. > 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 > > 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.