This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 69907 - doesn't use the comments or Javadoc to populate the description texts
Summary: doesn't use the comments or Javadoc to populate the description texts
Status: STARTED
Alias: None
Product: contrib
Classification: Unclassified
Component: JMX (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Jean-francois Denise
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-05 17:27 UTC by johnstosh
Modified: 2005-12-06 09:43 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description johnstosh 2005-12-05 17:27:29 UTC
The "New JMX MBean" wizard will let you wrap an existing class with an MBean.
It creates some methods in the new MBean to implement an Extended Standard 
MBean.  It also creates method wrappers for the methods of the wrapped bean.  

The source code for these method wrappers have comments derived from the 
descriptions entered into the "New JMX MBean" wizard.  The "New JMX MBean" 
wizard, however, doesn't use the comments or Javadoc to populate the 
description texts.

In comparison, the "Override Methods" wizard (in the Source menu) will pick up 
comments from Javadoc when creating source code for a method.
Comment 1 Jean-francois Denise 2005-12-06 09:27:51 UTC
I think that the current JMX support doesn't allow to add Attributes/Operations
to  this kind of MBean. 

We should disable the add Attribute/Operation as we do for pure Dynamic MBean.

I will then log an RFE to handle properly this use case.
Comment 2 Jean-francois Denise 2005-12-06 09:32:36 UTC
New enhancement logged :

http://www.netbeans.org/issues/show_bug.cgi?id=69929
Comment 3 Jean-francois Denise 2005-12-06 09:37:22 UTC
I mixed this issue ID with 69905. 
Forget what has been say before it applies to 69905

Comment 4 Jean-francois Denise 2005-12-06 09:43:10 UTC
What you suggest is that we should use the Javadoc of the wrapped class and use
it for descriptions.

Right? It is an excellent idea.