Project: JDT
Bug 87492 JUnit view: can't open some stack trace entries
Reported: 2005-03-09 08:43:11 | Status: resolved fixed

I20050308-1510 (but have seen it in earlier releases as well) Some of the entries could not be opened - reported by a dialog: Title: Cannot Open Editor Message: Test class not found in selected project It works when I first open the editor, no matter in which workbench window (!). When I copy the stack trace into the Console and click there the editor gets correctly opened. This is the stack trace that failed: java.lang.Error: Unresolved compilation problems: The method rewriteTypeOccurrence(CompilationUnitRange, CompilationUnitRewrite, CompilationUnit, Set, TextEditGroup) in the type SuperTypeRefactoringProcessor is not applicable for the arguments (CompilationUnitRange, ASTRewrite, CompilationUnit, CompilationUnit, Set, TextEditGroup) The method rewriteTypeOccurrence(CompilationUnitRange, CompilationUnitRewrite, CompilationUnit, Set, TextEditGroup) in the type SuperTypeRefactoringProcessor is not applicable for the arguments (CompilationUnitRange, ASTRewrite, CompilationUnit, CompilationUnit, Set, TextEditGroup) at org.eclipse.jdt.internal.corext.refactoring.structure.ExtractInterfaceProcessor.createTypeOccurrencesReplacements(ExtractInterfaceProcessor.java:755) at org.eclipse.jdt.internal.corext.refactoring.structure.ExtractInterfaceProcessor.createChangeManager(ExtractInterfaceProcessor.java:381) at org.eclipse.jdt.internal.corext.refactoring.structure.ExtractInterfaceProcessor.checkFinalConditions(ExtractInterfaceProcessor.java:248) at org.eclipse.ltk.core.refactoring.participants.ProcessorBasedRefactoring.checkFinalConditions(ProcessorBasedRefactoring.java:165) at org.eclipse.ltk.core.refactoring.Refactoring.checkAllConditions(Refactoring.java:126) at org.eclipse.ltk.core.refactoring.CheckConditionsOperation.run(CheckConditionsOperation.java:80) at org.eclipse.ltk.core.refactoring.CreateChangeOperation.run(CreateChangeOperation.java:114) at org.eclipse.ltk.core.refactoring.PerformChangeOperation.run(PerformChangeOperation.java:188) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1702) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1722) at org.eclipse.jdt.ui.tests.refactoring.RefactoringTest.performRefactoring(RefactoringTest.java:177) at org.eclipse.jdt.ui.tests.refactoring.RefactoringTest.performRefactoring(RefactoringTest.java:166) at org.eclipse.jdt.ui.tests.refactoring.ExtractInterfaceTests.validatePassingTest(ExtractInterfaceTests.java:137) at org.eclipse.jdt.ui.tests.refactoring.ExtractInterfaceTests.test12(ExtractInterfaceTests.java:215) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) at junit.extensions.TestSetup$1.protect(TestSetup.java:19) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.extensions.TestSetup.run(TestSetup.java:23) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) at junit.extensions.TestSetup$1.protect(TestSetup.java:19) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.extensions.TestSetup.run(TestSetup.java:23) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:474) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:342) at org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunner.main(RemotePluginTestRunner.java:36) at org.eclipse.pde.internal.junit.runtime.UITestApplication$1.run(UITestApplication.java:110) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:118) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:2885) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2544) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1484) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1450) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:288) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:102) at org.eclipse.pde.internal.junit.runtime.UITestApplication.run(UITestApplication.java:39) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:228) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:338) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:151) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:268) at org.eclipse.core.launcher.Main.basicRun(Main.java:260) at org.eclipse.core.launcher.Main.run(Main.java:887) at org.eclipse.core.launcher.Main.main(Main.java:871)

Files changed in fix:
org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/OpenEditorAction.java org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/OpenEditorAtLineAction.java org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/OpenTestAction.java