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 - New Window not compiling
Summary: New Window not compiling
Status: NEW
Alias: None
Product: apisupport
Classification: Unclassified
Component: Templates (show other bugs)
Version: 8.1
Hardware: PC Windows 8 x64
: P3 normal (vote)
Assignee: Martin Kozeny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-18 09:48 UTC by mienamoo
Modified: 2015-04-18 10:04 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 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.