| Summary: | [dom] Quickfix "Add Return Statement" inserts invalid code | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] Objectteams | Reporter: | Jan Marc Hoffmann <exelnet> | ||||
| Component: | OTDT | Assignee: | Stephan Herrmann <stephan.herrmann> | ||||
| Status: | VERIFIED FIXED | QA Contact: | |||||
| Severity: | trivial | ||||||
| Priority: | P3 | ||||||
| Version: | 1.4 | ||||||
| Target Milestone: | 0.7 M2 | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Created attachment 166931 [details]
test & fix
This patch contains a test and the fix.
TypeBinding.getDeclaredFields() needs to filter generated fields
starting with "_OT$" (as getDeclaredMethods() already does).
Patch has been committed as r291. Verified for M2 using I201005052210 |
Upon this situation a quickfix will fill in wrong code: Reproduce: Quickfix on this: public team class SomeTeam { protected class Role playedBy SomeBase { callin boolean m(){ } } } Results in: public team class SomeTeam { protected class Role playedBy SomeBase { callin boolean m(){ return _OT$cacheInitTrigger; } } }