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 - Code created from wizard does not compile
Summary: Code created from wizard does not compile
Status: STARTED
Alias: None
Product: contrib
Classification: Unclassified
Component: JMX (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jean-francois Denise
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-28 15:53 UTC by davelane
Modified: 2007-11-28 15:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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);