Project: JDT
Bug 88865 MoveInstanceMethodTests#testFail7() should work now
Reported: 2005-03-23 09:50:57 | Status: resolved fixed

Bindings.findType(ITypeBinding, ..) now uses ITypeBinding#getJavaElement(), which also works for local types. MoveInstanceMethodTests#testFail7() used to get a FATAL in checkFinalConditions(..) because the target type was not found. I disabled the test for now. The scenario of testFail7() is currently not reproducable from the UI anyway, since MoveInstanceMethod is disabled for local types. This restriction can now be dropped and the test can be converted into a succeeding test once the UI also allows to move methods to local types.

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test32/in/A.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/canMove/test32/out/A.java org.eclipse.jdt.ui.tests.refactoring/resources/MoveInstanceMethod/cannotMove/testFail7/in/A.java org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/refactoring/MoveInstanceMethodTests.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/RefactoringAvailabilityTester.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/MoveInstanceMethodProcessor.java org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/MoveInstanceMethodWizard.java