Community
Participate
Working Groups
I20080305-1100 1. Create a linked file to an existing .jar outside the workspace 2. Add the linked file to the build path of the project 3. Shutdown 4. Delete the .jar on the file system 5. Restart 6. Search for a reference that you know existed in the .jar Observe: You get an error dialog with a ZipException !ENTRY org.eclipse.jdt.core 4 -1 2008-03-11 17:07:13.875 !MESSAGE I/O exception !STACK 0 java.util.zip.ZipException: The system cannot find the file specified at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.<init>(ZipFile.java:203) at java.util.zip.ZipFile.<init>(ZipFile.java:234) at org.eclipse.jdt.internal.core.JavaModelManager.getZipFile(JavaModelManager.java:2149) at org.eclipse.jdt.internal.core.JarPackageFragmentRoot.getJar(JarPackageFragmentRoot.java:143) at org.eclipse.jdt.internal.core.search.matching.MatchLocator.getBinaryInfo(MatchLocator.java:770) at org.eclipse.jdt.internal.core.search.matching.MatchLocator.process(MatchLocator.java:1562) at org.eclipse.jdt.internal.core.search.matching.MatchLocator.locateMatches(MatchLocator.java:1036) at org.eclipse.jdt.internal.core.search.matching.MatchLocator.locateMatches(MatchLocator.java:1077) at org.eclipse.jdt.internal.core.search.matching.MatchLocator.locateMatches(MatchLocator.java:1194) at org.eclipse.jdt.internal.core.search.JavaSearchParticipant.locateMatches(JavaSearchParticipant.java:94) at org.eclipse.jdt.internal.core.search.BasicSearchEngine.findMatches(BasicSearchEngine.java:217) at org.eclipse.jdt.internal.core.search.BasicSearchEngine.search(BasicSearchEngine.java:500) at org.eclipse.jdt.core.search.SearchEngine.search(SearchEngine.java:550) at org.eclipse.jdt.internal.ui.search.JavaSearchQuery.run(JavaSearchQuery.java:143) at org.eclipse.search2.internal.ui.InternalSearchUI$InternalSearchJob.run(InternalSearchUI.java:94) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Created attachment 98878 [details] Regression test case
Created attachment 99093 [details] Proposed patch
Jerome, could you please review?
Patch looks good
Released for 3.4RC1 in HEAD stream.
Verified for 3.4RC1 using build I20080510-2000.