On Dec 13, 2006, at 6:00 AM, anita kulshreshtha wrote:
Ah.. java 5... One more question :)
Why do we allow bad operations in GBeanInfo ? For example it is
possible to add a non existent operation to GBeanInfo.
No idea. In general beans shouldn't be declaring operations. Instead
they should let the info builder automatically add all methods in the
class.
I'd suggest deprecate the methods for declaring operation infos and
then delete the places where they are declared. Then just leave the
operation info the way it is, so we have serialization backwards
compatibility.
-dain