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.
When I use the wizard "New MBean From Existing Class" to wrap an existing class the code will not compile. The problem is the constructor public class TestAppendServiceJMX extends StandardMBean implements TestAppendServiceJMXMBean { private TestAppendService theRef; public TestAppendServiceJMX(TestAppendService theRef) throws NotCompliantMBeanException { this.theRef = theRef; } --- } ...\TestAppendServiceJMX.java:23: cannot find symbol symbol : constructor StandardMBean() location: class javax.management.StandardMBean I found the following: http://java.sun.com/javase/6/webnotes/adoption/adoptionguide.html#2.2.1 Maybe it has something to do with this.
OK. This bug is linked to http://www.netbeans.org/issues/show_bug.cgi?id=122377 We are currently generating a call to super that is commented with a warning saying to uncomment. //WARNING Uncomment the following call to super() to make this class compile (see BUG ID 122377) // super(OperationWrappedMBean3MBean.class);