Project: JDT
Bug 31284 Push down refactoring: Exception when pressing 'preview' the second time
Reported: 2003-02-07 08:59:37 | Status: resolved fixed

20030206 1. select a method, invoke 'push down' (e.g. ChangeCorrectionProposal.setImage) 2. press preview 3. press cancel 4. press preview again java.lang.reflect.InvocationTargetException: org.eclipse.jdt.internal.corext.Assert$AssertionFailedException: assertion failed; at org.eclipse.jdt.internal.corext.Assert.isTrue(Assert.java:130) at org.eclipse.jdt.internal.corext.Assert.isTrue(Assert.java(Compiled Code)) at org.eclipse.jdt.internal.corext.textmanipulation.TextEdit.setParent (TextEdit.java:367) at org.eclipse.jdt.internal.corext.textmanipulation.TextEdit.internalAdd (TextEdit.java:397) at org.eclipse.jdt.internal.corext.textmanipulation.TextEdit.add (TextEdit.java:112) at org.eclipse.jdt.internal.corext.refactoring.structure.PushDownRefactoring.fillWi thRewriteEdits(PushDownRefactoring.java:1157) at org.eclipse.jdt.internal.corext.refactoring.structure.PushDownRefactoring.create ChangeManager(PushDownRefactoring.java:771) at org.eclipse.jdt.internal.corext.refactoring.structure.PushDownRefactoring.checkI nput(PushDownRefactoring.java:500) at org.eclipse.jdt.internal.ui.refactoring.CheckConditionsOperation.run (CheckConditionsOperation.java:59) at org.eclipse.jdt.internal.ui.refactoring.CreateChangeOperation.run (CreateChangeOperation.java:94) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run (ModalContext.java:95)

Files changed in fix:
org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ChangeSignatureRefactoring.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/PullUpRefactoring.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/PushDownRefactoring.java