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 122988

Summary: Code created from wizard does not compile
Product: contrib Reporter: davelane <davelane>
Component: JMXAssignee: Jean-francois Denise <jfdenise>
Status: STARTED ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description davelane 2007-11-28 15:53:35 UTC
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.
Comment 1 Jean-francois Denise 2007-11-28 15:58:03 UTC
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);