makoivis / eclipse-ticket-test

0 stars 0 forks source link

web.xml refactoring breaks widgetset parameter #141

Open makoivis opened 8 years ago

makoivis commented 8 years ago

Reported by Marc Englund on 13 Nov 2009 09:03 UTC When using the plugin to rename a package in certain ways, the widgetsets part of web.xml gets broken: wrong parts of the text are replaced.

To reproduce, create a project with a widgetset and a package com.foo.bar, and rename com.foo to com.foo.bar (making com.foo.bar com.foo.bar.bar).

An example of produced line: <param-vacom.foo.bar.bar.refactortest.widgetsettset.RefactortestApplicationWidgetset

makoivis commented 8 years ago

Modified by Artur Signell on 11 Jan 2010 06:16 UTC

makoivis commented 8 years ago

Comment by Artur Signell on 29 Oct 2010 08:11 UTC The text replacer fails when there are multiple changes in the same file and offsets for replacements are calculated on the original text and the changes are then applied one at a time.

makoivis commented 8 years ago

Comment by Artur Signell on 29 Oct 2010 08:33 UTC Fixed in [15772] by using RefactorParticipant.getTextChange() to find a related change and add additional refactorings to that change instead of creating a separate change.

makoivis commented 8 years ago

Modified by Artur Signell on 29 Oct 2010 19:23 UTC

makoivis commented 8 years ago

Modified by Artur Signell on 12 May 2014 07:42 UTC

makoivis commented 8 years ago

Modified by Artur Signell on 9 Sep 2014 08:39 UTC