Bug 159009 Errors opening resource
build i0926-0935 I commonly use ctrl-shift-r to open a resource in my workspace. with this build I frequently get an error and the following stack track in my log file. !ENTRY org.eclipse.core.jobs 4 2 2006-09-27 13:47:30.164 !MESSAGE An internal error occurred during: "Searching for all". !STACK 0 java.util.ConcurrentModificationException at java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:365) at java.util.LinkedHashMap$ValueIterator.next(LinkedHashMap.java:380) at org.eclipse.ui.dialogs.ResourceSearcher$ResourceHistory.getMatchedElements(ResourceSearcher.java:497) at org.eclipse.ui.dialogs.ResourceSearcher$ResourceSearchEngineJob.getFilteredHistory(ResourceSearcher.java:306) at org.eclipse.ui.dialogs.AbstractSearcher$AbstractSearchJob.internalRun(AbstractSearcher.java:395) at org.eclipse.ui.dialogs.AbstractSearcher$AbstractSearchJob.doRun(AbstractSearcher.java:371) at org.eclipse.ui.dialogs.AbstractSearcher$AbstractJob.run(AbstractSearcher.java:337) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/ResourceSearcher.java
/*
		 * (non-Javadoc)
		 * 
		 * @see java.util.Comparator#compare(java.lang.Object, java.lang.Object)
		 */
		public int compare(Object o1, Object o2) {
			ResourceSearchItem resourceDecorator1 = ((ResourceSearchItem) o1);
			ResourceSearchItem resourceDecorator2 = ((ResourceSearchItem) o2);
			IResource resource1 = resourceDecorator1.getResource();
			IResource resource2 = resourceDecorator2.getResource();
			String s1 = resource1.getName();
			String s2 = resource2.getName();
			int comparability = collator.compare(s1, s2);
			if (comparability == 0) {
				resourceDecorator1.markAsDuplicate();
				resourceDecorator2.markAsDuplicate();
				s1 = resource1.getFullPath().toString();
				s2 = resource2.getFullPath().toString();
				comparability = collator.compare(s1, s2);
			}
			return comparability;
		}
	}
	/**
	 * ResourceProxyVisitor to visit resource tree and get matched resources.
	 * During visit resources they update progress monitor.
	 * 
	 * @since 3.3
	 */
	private class ResourceProxyVisitor implements IResourceProxyVisitor {