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.
I have a Maven2 project in NB 6.5 200809140201. I am creating a new junit test case. I typed: SettingsService service = new SettingsService(); That object doesn't exist yet. I put my cursor over the second SettingsService (after new) and pressed alt enter. Code completion offered to create a class for this non-existent object twice. When I tried both, they both did the same thing. They created a new class in the same package in the unit test. I was hoping that one of them would create the class in my main project instead of in tests.
Created attachment 70119 [details] screenshot
This might not be a bug. Maybe it shows each item twice in code completion because I used that class that doesn't yet exist twice on the line.
Actually the hints are not the same, one creates only the class and the second creates class with constructor. The hints should be merged to one or named differently anyway. *** This issue has been marked as a duplicate of 140935 ***