Return-Path: Delivered-To: apmail-incubator-beehive-dev-archive@www.apache.org Received: (qmail 98615 invoked from network); 20 Jun 2005 22:25:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Jun 2005 22:25:15 -0000 Received: (qmail 79854 invoked by uid 500); 20 Jun 2005 22:25:03 -0000 Delivered-To: apmail-incubator-beehive-dev-archive@incubator.apache.org Received: (qmail 79133 invoked by uid 500); 20 Jun 2005 22:24:58 -0000 Mailing-List: contact beehive-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Beehive Developers" Delivered-To: mailing list beehive-dev@incubator.apache.org Received: (qmail 78891 invoked by uid 99); 20 Jun 2005 22:24:55 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Jun 2005 15:24:54 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 7AAFA32A for ; Mon, 20 Jun 2005 22:04:17 +0200 (CEST) Message-ID: <709801035.1119297857501.JavaMail.jira@ajax.apache.org> Date: Mon, 20 Jun 2005 22:04:17 +0200 (CEST) From: "James Song (JIRA)" To: beehive-dev@incubator.apache.org Subject: [jira] Closed: (BEEHIVE-179) context.getControlPropertySet() should return null for non-existent annotation In-Reply-To: <1133305042.1106097617605.JavaMail.jira@ajax.apache.org> 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/BEEHIVE-179?page=all ] James Song closed BEEHIVE-179: ------------------------------ Optional propertySet is tested by trunk\controls\test\src\controls\org\apache\beehive\controls\test\controls\property\PropertyControl.java and passes. > context.getControlPropertySet() should return null for non-existent annotation > ------------------------------------------------------------------------------ > > Key: BEEHIVE-179 > URL: http://issues.apache.org/jira/browse/BEEHIVE-179 > Project: Beehive > Type: Bug > Components: Controls > Versions: V1Beta > Environment: Windows > Reporter: Lawrence Jones > Assignee: James Song > Priority: Critical > Fix For: V1Beta > > I call > ServiceControl.TypesJarName typesJarNameAnn = > (ServiceControl.TypesJarName)context. > getControlPropertySet(ServiceControl.TypesJarName.class); > in the Impl of my control (ServiceControl). TypesJarName is a valid annotation which is defined in the public interface but not used in either the public interface nor in the JCX. > I expected to receive null but instead I get a non-null object with defaulted values for its members. > This is at odds with the javadoc for the API ControlBeanContext.getControlPropertySet() and in any case you need a way to be able to tell whether an annotation is present or not (especially if you have marker annotations). -- 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