Bug 352403 - [generate constructor] Source/Generate Constructor Using Fields should work without fields
Summary: [generate constructor] Source/Generate Constructor Using Fields should work w...
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 427795 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-07-19 02:04 EDT by Juergen Weber CLA
Modified: 2014-02-11 09:49 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Weber CLA 2011-07-19 02:04:49 EDT
Build Identifier: 20110615-0604

If a class has no fields Source/Generate Constructor Using Fields brings the error message "The selected type contains no fields which may be initialized in a constructor". This is correct, but not user friendly. 

Instead an empty constructor should be generated rather than force the user to Generate Constructor from Superclass.

This is similar to Bug 90434.

Reproducible: Always
Comment 1 Dani Megert CLA 2014-02-11 09:49:47 EST
*** Bug 427795 has been marked as a duplicate of this bug. ***