Bug 16392 Exception removing search results
build 2002-05-19 on WinXP. IBM JRE 1.3.1. I did a text search and got over 100 hits. I selected a handful of them and then chose "remove entries" from the context menu. I got error dialogs for each result I wanted to remove. Looks like the markers have been removed and the search view is trying to access attributes? I will attach the log file.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/SearchUtil.java
String resourceName= ""; 
				if (marker.getResource() != null)
					resourceName= marker.getResource().getName();
				if (!handleContainsWrongCU(handle, resourceName)) {
				 	handle= computeFixedHandle(handle, resourceName);
					IJavaElement je= JavaCore.create(handle);
				 	if (je != null && je.exists()) {
				 		try {
							marker.setAttribute(IJavaSearchUIConstants.ATT_JE_HANDLE_ID, handle);
				 		} catch (CoreException ex) {
				 			
				 		} finally {
							return je;
				 		}
				 	}
				}
			}
			return null;
	}
	
	private static boolean handleContainsWrongCU(String handle, String resourceName) {
		int start= handle.indexOf('{');
		int end= handle.indexOf(".java"); 
		if (start >= end)
			return false;
		String name= handle.substring(start + 1, end + 5);
		return name.equals(resourceName);
	}
	
	private static String computeFixedHandle(String handle, String resourceName) {