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

Reply via email to