Project: JDT
Bug 198392 [extract class] IAE when extracting class
Reported: 2007-07-31 09:33:02 | Status: resolved fixed

20070731 - checkout org.eclipse.compare in source - invoke extract class on 'hunk' and select all fields (with getter and setter) java.lang.IllegalArgumentException at org.eclipse.jdt.core.dom.ASTNode$NodeList.add(ASTNode.java:1247) at java.util.AbstractList.add(AbstractList.java:91) at org.eclipse.jdt.internal.corext.refactoring.structure.ParameterObjectFactory.createFieldWriteAccess(ParameterObjectFactory.java:366) at org.eclipse.jdt.internal.corext.refactoring.structure.ExtractClassRefactoring.replaceReferences(ExtractClassRefactoring.java:567) at org.eclipse.jdt.internal.corext.refactoring.structure.ExtractClassRefactoring.updateReferences(ExtractClassRefactoring.java:512) at org.eclipse.jdt.internal.corext.refactoring.structure.ExtractClassRefactoring.checkFinalConditions(ExtractClassRefactoring.java:338) at org.eclipse.ltk.core.refactoring.CheckConditionsOperation.run(CheckConditionsOperation.java:83) at org.eclipse.ltk.core.refactoring.CreateChangeOperation.run(CreateChangeOperation.java:119) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1797) at org.eclipse.ltk.internal.ui.refactoring.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:87) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/ExtractClass/testControlBodyUpdates/in/ControlBodyUpdates.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractClass/testControlBodyUpdates/out/ControlBodyUpdates.java org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/GetterSetterUtil.java