| Summary: | [generate constructor] Generate constructor using fields should respect field order | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Willian Mitsuda <wmitsuda> | ||||
| Component: | UI | Assignee: | Markus Keller <markus.kell.r> | ||||
| Status: | VERIFIED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | cho, daniel_megert, Konstantin.Scheglov, martinae, p35t173nc3 | ||||
| Version: | 3.4 | Flags: | daniel_megert:
review+
|
||||
| Target Milestone: | 3.4.1 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Willian Mitsuda
You can choose the order in the dialog, but I agree that the default ordering should be the one taken It is curious that I only noted the up/down buttons now, after your comment. *** Bug 232733 has been marked as a duplicate of this bug. *** As additional info this is a regression from 3.3, so this should be fixed. I remember that this regression has occured before in a beta release of another version (I think it was 3.0 or 3.1). Maybe a regression test should be made for this. We should fix this for 3.4.1. People also complained on the newsgroup about this. In addition, the current code lists the field in an undefined order. Bug is in GenerateNewConstructorUsingFieldsAction.run(IType, IField[], boolean). Targeting for 3.4.1 but might be deferred to 3.5 if fix is non-trivial. Created attachment 107964 [details]
Fix
Released to HEAD.
Committed to R3_4_maintenance. Verified in build input for M20080808-0800. |