Please use the Apache issue tracking system for new NetBeans issues (https://issues.apache.org/jira/projects/NETBEANS0/issues) !!
Bug 251924 - New Window not compiling
New Window not compiling
Status: NEW
Product: apisupport
Classification: Unclassified
Component: Templates
8.1
PC Windows 8 x64
: P3 (vote)
: TBD
Assigned To: Martin Kozeny
issues@apisupport
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-04-18 09:48 UTC by mienamoo
Modified: 2015-04-18 10:04 UTC (History)
0 users

See Also:
Issue Type: DEFECT
:


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.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo