Bug 264537 - [generate constructor] Allow to use/call existing constructors if available
Summary: [generate constructor] Allow to use/call existing constructors if available
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-11 10:57 EST by Waldo auf der Springe CLA
Modified: 2009-02-12 02:37 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Waldo auf der Springe CLA 2009-02-11 10:57:16 EST
Note: this bug is not about Eclipse, not Mylyn, but I think that because I choose Mylyn as the product with which to specify the bug it infers the bug peratins to Mylyn?

The constructor generated with "Generate Constructor using fields..." always includes super();
In this way the default constructor in the same class is omitted. If such a constructor exists, the generated code should include "this();" rather then "super();"
Comment 1 Steffen Pingel CLA 2009-02-11 15:34:01 EST
Moving to JDT which contributes the code generation features.
Comment 2 Olivier Thomann CLA 2009-02-11 15:38:23 EST
Move to JDT/UI