Project: JDT
Bug 59280 Introduce Factory fails with SuperConstructorInvocation [refactoring]
Reported: 2004-04-20 11:49:35 | Status: resolved fixed

20040420 1. do 'Introduce Factory' on ASTRewrite(AST) in jdt.corext.dom 2. -> Caused by: Java Model Exception: Java Model Status [Unexpected AST node type for constructor search hit: 'org.eclipse.jdt.core.dom.SuperConstructorInvocation('super(node.getAST());')' in compilation unit 'OldASTRewrite.java'] at java.lang.Throwable.<init>(Throwable.java) at java.lang.Throwable.<init>(Throwable.java) at org.eclipse.core.runtime.CoreException.<init>(CoreException.java) at org.eclipse.jdt.core.JavaModelException.<init>(JavaModelException.java) at org.eclipse.jdt.internal.corext.refactoring.code.IntroduceFactoryRefactoring.getCtorCallAt(IntroduceFactoryRefactoring.java:855) at org.eclipse.jdt.internal.corext.refactoring.code.IntroduceFactoryRefactoring.replaceConstructorCalls(IntroduceFactoryRefactoring.java:786) at org.eclipse.jdt.internal.corext.refactoring.code.IntroduceFactoryRefactoring.addAllChangesFor(IntroduceFactoryRefactoring.java:719) at org.eclipse.jdt.internal.corext.refactoring.code.IntroduceFactoryRefactoring.createChange(IntroduceFactoryRefactoring.java:904) at org.eclipse.ltk.core.refactoring.CreateChangeOperation.run(CreateChangeOperation.java:113) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java) at org.eclipse.ltk.internal.ui.refactoring.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:52) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/IntroduceFactory/Bugzilla/59280/ExplicitSuperCtorCall.java org.eclipse.jdt.ui.tests.refactoring/resources/IntroduceFactory/Bugzilla/59280/ExplicitSuperCtorCall_out.java org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/refactoring/IntroduceFactoryTests.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/IntroduceFactoryRefactoring.java