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 218735 - Project Template wizard code does not compile due to missing Lookup dependency
Summary: Project Template wizard code does not compile due to missing Lookup dependency
Status: VERIFIED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Templates (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-21 08:15 UTC by mienamoo
Modified: 2012-09-26 08:21 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 2012-09-21 08:15:59 UTC
NetBeans build 201209210001
JDK 7u5 64-bit

I created a new standalone Ant-based module. And used the Project Template wizard to create a project template based on another module. However, the generated code did not compile, with the following error:

C:\Projects\Tests\questions\module10\src\as\BlaWizardIterator.java:73: error: cannot access Lookup
        unZipFile(template.getInputStream(), dir);
  class file for org.openide.util.Lookup not found

I had to manually add a dependency on the Lookup API to solve this problem. I believe that this dependency should be added by the wizard just like the others (Utilities API and so forth).

This is a regression in terms of functionality since the same process works with NetBeans 7.2.
Comment 1 Milos Kleint 2012-09-25 07:04:05 UTC
hmm, works in maven projects because the util.lookup dependency gets pulled transitively
Comment 2 Milos Kleint 2012-09-25 07:20:45 UTC
http://hg.netbeans.org/core-main/rev/80d88200eb3f
Comment 3 Quality Engineering 2012-09-26 02:10:22 UTC
Integrated into 'main-golden', will be available in build *201209260001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/80d88200eb3f
User: Milos Kleint <mkleint@netbeans.org>
Log: #218735 need util.lookup next to util module dependency
Comment 4 mienamoo 2012-09-26 08:21:21 UTC
Verified with build 201209260001.