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 108818 - Automatic Resource Management "All Resources + Injection" creates non-compilable code
Summary: Automatic Resource Management "All Resources + Injection" creates non-compila...
Status: RESOLVED DUPLICATE of bug 100790
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-03 23:00 UTC by rogier
Modified: 2007-07-04 21:10 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 rogier 2007-07-03 23:00:32 UTC
M10: 
Used this steps to reproduce:
1. Create a new panel 
2. Go to Form in Inspector
3. Set Automatic Resource Management to "All Resources + Injection" and save form
4. Compile -> error.

This line of code is generated:
null.getContext().getResourceMap(NewJPanel.class).injectComponents(this);

Which is off course not correct..
Comment 1 Tomas Pavek 2007-07-04 15:00:06 UTC
I guess you did this in a plain java project. It is supposed to work only with Swing Application Framework - i.e. in
projects created via the Java Desktop Application template. We should hide the resources option in normal project -
that's bug 100790.

*** This issue has been marked as a duplicate of 100790 ***
Comment 2 rogier 2007-07-04 21:10:59 UTC
This is correct, it is done via an already existing project, not using the Swing App Framework.