Project: JDT
Bug 393829 [change method signature] Precondition fails with exception when applying refactoring on a method of an anonyous class passed as argument
Reported: 2012-11-07 23:12:18 | Status: resolved fixed

Steps to reproduce: 1. Invoke "Change Method Signature" on method "a" 2. Reorder parameters "par1" and "par2" (i.e., put "par1" "Down") 3. There is an exception reported in a dialog public class ChangeMethodSignatureBug { public ChangeMethodSignatureBug(Object obj) { } public void m() { new ChangeMethodSignatureBug(new Object() { public void a(Object par1, Object par2) { } }); } }

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/ChangeSignature/canModify/A_testAnonymous01_in.java org.eclipse.jdt.ui.tests.refactoring/resources/ChangeSignature/canModify/A_testAnonymous01_out.java org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/refactoring/ChangeSignatureTests.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/TypeContextChecker.java