History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-17446
Type: New Feature New Feature
Status: Open Open
Assignee: Alexey Kudravtsev
Reporter: Eugene Kirpichov
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

'Create constructor' should suggest to also create a parameterless constructor if there was none

Created: 18 Mar 08 14:56   Updated: 18 Mar 08 17:16
Component/s: Editor. Intention Actions

Build: 7,757


 Description  « Hide
Suppose class C has no constructors defined at all (and thus, has only a default parameterless constructor).
Suppose I want to add a field initializing constructor with 3 parameters to C.

I do this and code using new C() breaks - in case I forget to manually add the default constructor that has now become necessary.

Would be nice if "Create constructor" (both from Alt-Ins in the class body and from the intention "create constructor" on an unresolved constructor reference) asked me whether I would like to create a parameterless constructor if the class didn't already have one.



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.