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 119619 - "Create class" hint should also offer to create a nested class
Summary: "Create class" hint should also offer to create a nested class
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jan Lahoda
Depends on:
Reported: 2007-10-22 10:23 UTC by Andrei Badea
Modified: 2010-04-28 05:11 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Badea 2007-10-22 10:23:14 UTC
In a class named example.Foo I had code like:

Bar result = new Bar(param);
return result;

where Bar was not defined yet. I press Alt+Enter of the first line wanting to create Bar as a nested class, but the hint
only offers to create a top-level class.
Comment 1 Geertjan Wielenga 2008-02-19 22:54:31 UTC
I have a module that provides this, I will submit a patch for this issue. Here is the module, but not the sources yet:
Comment 2 Jan Lahoda 2010-04-27 13:52:57 UTC
This should work:
Comment 3 Quality Engineering 2010-04-28 05:11:26 UTC
Integrated into 'main-golden', will be available in build *201004280200* on (upload may still be in progress)