From commits-return-44393-apmail-harmony-commits-archive=harmony.apache.org@harmony.apache.org Mon Oct 01 08:25:12 2007 Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 30969 invoked from network); 1 Oct 2007 08:25:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Oct 2007 08:25:12 -0000 Received: (qmail 38948 invoked by uid 500); 1 Oct 2007 08:25:01 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 38927 invoked by uid 500); 1 Oct 2007 08:25:01 -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 38918 invoked by uid 99); 1 Oct 2007 08:25:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Oct 2007 01:25:01 -0700 X-ASF-Spam-Status: No, hits=-98.8 required=10.0 tests=ALL_TRUSTED,DNS_FROM_DOB,RCVD_IN_DOB X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Oct 2007 08:25:11 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 956B3714209 for ; Mon, 1 Oct 2007 01:24:50 -0700 (PDT) Message-ID: <29178449.1191227090602.JavaMail.jira@brutus> Date: Mon, 1 Oct 2007 01:24:50 -0700 (PDT) From: "Alexei Zakharov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Closed: (HARMONY-4861) [classlib][beans] PropertyDescriptor.getReadMethod() violates spec In-Reply-To: <23591058.1190876150759.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-4861?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alexei Zakharov closed HARMONY-4861. ------------------------------------ Was verified by Andrey. > [classlib][beans] PropertyDescriptor.getReadMethod() violates spec > ------------------------------------------------------------------ > > Key: HARMONY-4861 > URL: https://issues.apache.org/jira/browse/HARMONY-4861 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Andrey Pavlenko > Assignee: Alexei Zakharov > Attachments: HARMONY-4861-IntrospectorTest.patch, HARMONY-4861-St= andardBeanInfo.patch > > > According to JavaBeans API specification v1.01 =C2=A78.3.2 introspector s= hould use "is" methods for reading boolean properties prior to "get". > The following test demonstrates the issue: > import java.beans.IntrospectionException; > import java.beans.Introspector; > import java.beans.PropertyDescriptor; > public class Test { > =09public static class TestBean { > =09=09boolean prop1; > =09=09public boolean isProp1() { > =09=09=09return prop1; > =09=09} > =09=09public boolean getProp1() { > =09=09=09return prop1; > =09=09} > =09} > =09public static void main(String[] args) throws IntrospectionException { > =09=09PropertyDescriptor[] propertyDescriptors =3D Introspector.getBeanIn= fo( > =09=09=09=09TestBean.class).getPropertyDescriptors(); > =09=09for (PropertyDescriptor d : propertyDescriptors) { > =09=09=09if (d.getName().equals("prop1") > =09=09=09=09=09&& (!d.getReadMethod().getName().equals("isProp1"))) { > =09=09=09=09System.err.println("FAILED"); > =09=09=09=09return; > =09=09=09} > =09=09} > =09=09System.err.println("PASSED"); > =09} > } --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.