Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 63030 invoked from network); 9 Dec 2008 14:53:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Dec 2008 14:53:07 -0000 Received: (qmail 23800 invoked by uid 500); 9 Dec 2008 14:53:19 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 23784 invoked by uid 500); 9 Dec 2008 14:53:19 -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 23775 invoked by uid 99); 9 Dec 2008 14:53:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Dec 2008 06:53:19 -0800 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, 09 Dec 2008 14:51:57 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8FE29234C2B4 for ; Tue, 9 Dec 2008 06:52:46 -0800 (PST) Message-ID: <431386071.1228834366588.JavaMail.jira@brutus> Date: Tue, 9 Dec 2008 06:52:46 -0800 (PST) From: "Kevin Zhou (JIRA)" To: commits@harmony.apache.org Subject: [jira] Created: (HARMONY-6038) [classlib] [beans] java.beans.Introspector.getBeanInfo doesn't works well and throws NPE MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [classlib] [beans] java.beans.Introspector.getBeanInfo doesn't works well and throws NPE ---------------------------------------------------------------------------------------- Key: HARMONY-6038 URL: https://issues.apache.org/jira/browse/HARMONY-6038 Project: Harmony Issue Type: Bug Components: Classlib Affects Versions: 5.0M8 Reporter: Kevin Zhou Fix For: 5.0M9 Conduct the given a test case [1] below on RI and HARMONY. RI works well, while HARMONY will throw a NullPointerException [2]. The exception is throw in StandardBeanInfo during the merging of properties from MockParent ang MockChild classes. [1] Test Case public class IntrospectorTest extends TestCase { public static class MockParent { public void setValue(int v) { // do nothing } public void setValue(int v, String s) { // do nothing } } public static class MockChild extends MockParent { public void setValue(int v) { // do nothing } } public void test_Introspector() throws Exception { BeanInfo beanInfo = Introspector.getBeanInfo(MockChild.class); } } [2] NPE Stack Trace: java.lang.NullPointerException at java.beans.StandardBeanInfo.mergeProps(StandardBeanInfo.java:295) at java.beans.StandardBeanInfo.mergeBeanInfo(StandardBeanInfo.java:209) at java.beans.Introspector.getBeanInfoImpl(Introspector.java:282) at java.beans.Introspector.getBeanInfoImplAndInit(Introspector.java:347) at java.beans.Introspector.getBeanInfo(Introspector.java:162) at IntrospectorTest.test_MockObject(IntrospectorTest.java:27) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.