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 251924

Summary: New Window not compiling
Product: apisupport Reporter: mienamoo
Component: TemplatesAssignee: Martin Kozeny <mkozeny>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Windows 8 x64   
Issue Type: DEFECT Exception Reporter:

Description mienamoo 2015-04-18 09:48:49 UTC
IDE: Build 201504170001
JDK: 1.8.0_45 64-bit

I don't know whether this component is quite the right one to assign this issue to - please reassign if I got it wrong. :)

1. Create a new NetBeans Platform Application (ant-based)
2. Create a new module in the application (default source level is 1.6)
3. Create a new top component using the New Window wizard
4. Delete the line at the top that causes the class to not compile (see bug 251922).
5. Try to compile the application. The errors below are encountered, despite the fact that there are no lines in the source code marked as having issues.

Note that compiling the module on its own, causes only the first error.



TestTopComponent.java:35: error: cannot access HelpCtx
public final class TestTopComponent extends TopComponent {
  class file for org.openide.util.HelpCtx not found

TestTopComponent.java:39: error: cannot find symbol
        setName(Bundle.CTL_TestTopComponent());
  symbol:   variable Bundle
  location: class TestTopComponent

TestTopComponent.java:40: error: cannot find symbol
        setToolTipText(Bundle.HINT_TestTopComponent());
  symbol:   variable Bundle
  location: class TestTopComponent

TestTopComponent.java:52: error: cannot find symbol
        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
  symbol:   variable this
  location: class TestTopComponent

TestTopComponent.java:53: error: cannot find symbol
        this.setLayout(layout);
  symbol:   variable this
  location: class TestTopComponent

TestTopComponent.java:66: error: method does not override or implement a method from a supertype
    @Override

TestTopComponent.java:71: error: method does not override or implement a method from a supertype
    @Override
Comment 1 mienamoo 2015-04-18 09:52:06 UTC
Adding a module dependency on Utilities API solved this issue, so adding that to the wizard should do the trick.