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.
Summary: | [65cat] Code completion to create constructors with parameters | ||
---|---|---|---|
Product: | java | Reporter: | malfunction84 <malfunction84> |
Component: | Editor | Assignee: | Dusan Balek <dbalek> |
Status: | NEW --- | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
malfunction84
2008-07-29 22:59:00 UTC
> When invoking CC to generate a constructor, the only option provided is that of a "default" (no-argument) constructor,
> even when the superclass has no such constructor. The result is generated code that does not compile.
Agreed! The IDE never should create code that don't compile.
Beside that, I think that Alt + Insert > Constructor... should help you. With it is possible choose the parameters for
constructor.
Regards.
Yes, that is helpful. Thanks. Still, whatever inspection occurs to generate the constructor list provided by the code insertion dialog should provide that same constructor list to the code completion dialog. These sorts of constructors are similar in function to overridden methods which, when generated by code completion, automatically chain to the superclass's implementation and pass all arguments through. |