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 184778 - New File Type Wizard Generates Uncompilable Code
Summary: New File Type Wizard Generates Uncompilable Code
Status: VERIFIED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Templates (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Jesse Glick
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2010-04-22 20:45 UTC by tomwheeler
Modified: 2010-04-27 17:28 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 tomwheeler 2010-04-22 20:45:00 UTC
While testing NB 6.9 beta, I found that the new file type wizard generates code which will not compile due to a missing dependency.  To reproduce:

1. New Project -> NetBeans Modules -> NetBeans Platform Application

2. Add a new module to the suite created in step 1.

3. Right-click the new module from step 2 and choose New -> File Type

4. Complete the New File Type wizard and click Finish

At this point you should be able to compile the new module, but I find compilation fails with 8 errors.  You can correct all of them by adding a dependency on the Utilities API.  I contend that the wizard should add this dependency automatically just as it does for File System API, Datasystems API, etc.
Comment 1 Jesse Glick 2010-04-23 04:09:46 UTC
Probably a regression from f8a7d3aeb490, which tried to solve a compilation error due to the org.openide.util.lookup refactoring.
Comment 2 Jesse Glick 2010-04-23 16:16:01 UTC
core-main #ef67cef6d138
Comment 3 Quality Engineering 2010-04-24 05:26:13 UTC
Integrated into 'main-golden', will be available in build *201004240200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/ef67cef6d138
User: Jesse Glick <jglick@netbeans.org>
Log: #184778: New File Type Wizard Generates Uncompilable Code
Comment 4 tomwheeler 2010-04-27 17:28:20 UTC
Verified in nightly build 201004260200.