Project: JDT
Bug 30706 Problem with linked folders, filters and refactoring.
Reported: 2003-01-31 07:45:35 | Status: resolved fixed

I am trying to use the refactoring support in an environment where the project source tree is accessed via links and some parts of the raw tree are filtered out. Specifically I am trying to rename a class and when the refactoring dialog comes up I select all the options which forces a preview. When I select the "preview" button, the system works for a moment, flashes up another dialog or message box which disappears before it can be seen and finally presents a dialog that states that an internal processing error has occurred and that details will be found in the log. When I look at the log below !SESSION Jan 31, 2003 07:56:09.772 -------------------------------------------- - java.version=1.4.1_01 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US Command-line arguments: -os win32 -ws win32 -arch x86 -data E:\CRYPTOAdminWorkspace-6.0 -showlocation -install file:E:/Eclipse- I20030129/eclipse/ !ENTRY org.eclipse.jdt.ui 4 10001 Jan 31, 2003 07:56:09.772 !MESSAGE Internal Error !STACK 0 java.lang.reflect.InvocationTargetException at org.eclipse.jdt.internal.ui.refactoring.CheckConditionsOperation.run (CheckConditionsOperation.java:61) at org.eclipse.jdt.internal.ui.refactoring.CreateChangeOperation.run (CreateChangeOperation.java:94) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run (ModalContext.java:95) Caused by: Java Model Exception: Core Exception [code 969] Release/com/cryptocard/HalfPint [in CRYPTOAdmin-6.0] does not exist. at org.eclipse.jdt.internal.corext.refactoring.rename.RenameTypeRefactoring.checkI nput(RenameTypeRefactoring.java:389) at org.eclipse.jdt.internal.ui.refactoring.CheckConditionsOperation.run (CheckConditionsOperation.java:59) ... 2 more we see that the system is complaining about Release/com/cryptocard/HalfPint. This is one of the directories that has been filtered out of the project. I am attaching the .project and .classpath files for the project as supporting material. Regards Jonathan Gossage

Files changed in fix:
org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/rename/TextMatchFinder.java