Return-Path: Delivered-To: apmail-incubator-beehive-dev-archive@www.apache.org Received: (qmail 46388 invoked from network); 14 Jun 2005 19:12:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Jun 2005 19:12:59 -0000 Received: (qmail 62921 invoked by uid 500); 14 Jun 2005 19:12:57 -0000 Delivered-To: apmail-incubator-beehive-dev-archive@incubator.apache.org Received: (qmail 62894 invoked by uid 500); 14 Jun 2005 19:12:57 -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 62881 invoked by uid 99); 14 Jun 2005 19:12:57 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from ajax-1.apache.org (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 14 Jun 2005 12:12:51 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 827DB3F8 for ; Tue, 14 Jun 2005 20:44:48 +0200 (CEST) Message-ID: <1935623014.1118774688533.JavaMail.jira@ajax.apache.org> Date: Tue, 14 Jun 2005 20:44:48 +0200 (CEST) From: "Zach Smith (JIRA)" To: beehive-dev@incubator.apache.org Subject: [jira] Assigned: (BEEHIVE-528) Compliance with javabean spec In-Reply-To: <1473936505.1113497479557.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/BEEHIVE-528?page=all ] Zach Smith reassigned BEEHIVE-528: ---------------------------------- Assign To: Zach Smith (was: Kyle Marvin) > Compliance with javabean spec > ----------------------------- > > Key: BEEHIVE-528 > URL: http://issues.apache.org/jira/browse/BEEHIVE-528 > Project: Beehive > Type: Bug > Components: Controls > Versions: V1Alpha, V1Beta, V1 > Environment: All env's > I tested on win2k , x86 > Reporter: Mridul Muralidharan > Assignee: Zach Smith > Priority: Critical > Fix For: V1 > Attachments: javabean.diff > > Essentially two issues : > 1) The manifest entry for a Control in the control jar is not correct. > 2) The serialization of the ControlBean is failing. > Here is the email exchange I had with Kyle about this in the alias. > Thanks > -- > Mridul, > The intention is that Controls should be 100% conformant with the > JavaBeans spec. You should be able to do things like: > - load, introspect, and use the Control bean class in any JavaBeans aware editor > - use a Control anywhere a JavaBean can be used (like JSP tag) > If there are areas where they are not, then these should be filed as > high-priority JIRA issues. I checked the JAR spec, and "Java-Beans:" > is the correct manifest attribute, so this is definitely an > oversight/bug. > Both this and the serialization issue (serializability of all > code-generated or supporting runtime classes is definitely a reqt too) > should be opened as "Critical/fix by V1" issues. > Your Controls questions and feedback are proving to be invaluable.... > keep 'em coming! :) > -- Kyle > On 4/14/05, Mridul Muralidharan wrote: > >> Hi all, > >> > >> Since ControlBean is essentially a javabean , I wanted to see the > >> interoperatability of controls with a pure javabean env. > >> For this , I got the BDK1.1 > >> (http://java.sun.com/products/javabeans/software/bdk_download.html - yep > >> , I know this is old !) and tried to load a simple control jar in it. > >> I had to modify the BDK code to also accept "JavaBeans: true" as a > >> javabean (it had a check for only "Java-Beans" - btw , is this valid ? > >> Have not checked the spec yet on this). > >> What I found was that when I try to serialize a control after having > >> customized it , it throws an exception indicating that it cant be > >> serialized. > >> On some digging I found that this was 'cos > >> "org.apache.beehive.controls.api.properties.PropertyKey" had a field > >> "Method _getMethod;". > >> Now , since Method is not serializable , this fails serialization of the > >> entire ControlBean. > >> > >> So question would be whether this is the intended behavior - as in > >> Controls were not expected to interoperate with a plain vanilla javabean > >> env ? > >> (From what I have seen till now , beehive seems to go to great pains to > >> maintain interoperability and is not just using and riding over the > >> javabeans framework). > >> If it is expected to interoperate, then I guess this would be a bug. > >> > >> Any thoughts , comments , help would be greatly appreciated ! > >> > >> Thanks and Regards, > >> Mridul > >> -- 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