| Summary: | [refactoring] adapt "change signature" refactoring | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] Objectteams | Reporter: | Stephan Herrmann <stephan.herrmann> | ||||
| Component: | OTDT | Assignee: | Stephan Herrmann <stephan.herrmann> | ||||
| Status: | VERIFIED FIXED | QA Contact: | |||||
| Severity: | enhancement | ||||||
| Priority: | P3 | Keywords: | noteworthy | ||||
| Version: | 0.7 | ||||||
| Target Milestone: | 0.7.1 | ||||||
| Hardware: | Other | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Stephan Herrmann
Created attachment 177666 [details]
implementation incl tests
Implemented using a new team ChangeSignatureAdaptor:
- adjust any method specs that refer to a method whose signature is
being changed
- report if changes should propagate through the method mapping
(which is not automated)
- if possible absorb re-ordering of arguments by adding parameter mappings
Tests are included.
Also: improve handling of parameter mappings in AstRewriteAnalyzer.
Patch has been committed as r748 - r750 One more note on the changes in AstRewriteAnalyzer: without this patch adding parameter mappings using a ListRewrite produced overlapping edits. The new method is a mix of rewriteMethodBody and some bits of the old implementation. Verified using I201009211735 |