Bug 352403

Summary: [generate constructor] Source/Generate Constructor Using Fields should work without fields
Product: [Eclipse Project] JDT Reporter: Juergen Weber <juergen>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3 CC: daniel_megert, ed
Version: 3.7   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

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. ***