Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Thomann2010-05-13 01:09:41 +0000
committerOlivier Thomann2010-05-13 01:09:41 +0000
commit45e76db06edeab7bb8ee5bd50a73998721a4e9ad (patch)
tree3cdefbdacb569f8f919bdbf672d0c7311d3192e0
parenta674f706aea74bde9802eaf5153b1fbf9506c1bd (diff)
downloadeclipse.jdt.core-45e76db06edeab7bb8ee5bd50a73998721a4e9ad.tar.gz
eclipse.jdt.core-45e76db06edeab7bb8ee5bd50a73998721a4e9ad.tar.xz
eclipse.jdt.core-45e76db06edeab7bb8ee5bd50a73998721a4e9ad.zip
JSR_308 - Fix for 312326
-rw-r--r--org.eclipse.jdt.core/buildnotes_jdt-core.html4
-rw-r--r--org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/indexing/IndexManager.java5
2 files changed, 5 insertions, 4 deletions
diff --git a/org.eclipse.jdt.core/buildnotes_jdt-core.html b/org.eclipse.jdt.core/buildnotes_jdt-core.html
index e452421017..8eca7a458a 100644
--- a/org.eclipse.jdt.core/buildnotes_jdt-core.html
+++ b/org.eclipse.jdt.core/buildnotes_jdt-core.html
@@ -50,7 +50,9 @@ Eclipse SDK 3.6RC1 - %date% - 3.6.0 RC1
<h2>What's new in this drop</h2>
<h3>Problem Reports Fixed</h3>
-<a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=310159">310159</a>
+<a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=312326">312326</a>
+IllegalArgumentException using open type dialog
+<br><a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=310159">310159</a>
Hang in JavaModel.getExternalTarget(JavaModel.java:333)
<a name="v_A52"></a>
diff --git a/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/indexing/IndexManager.java b/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/indexing/IndexManager.java
index 18ade5f648..a6ce042af2 100644
--- a/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/indexing/IndexManager.java
+++ b/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/indexing/IndexManager.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2009 IBM Corporation and others.
+ * Copyright (c) 2000, 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -47,7 +47,6 @@ public class IndexManager extends JobManager implements IIndexConstants {
/* need to save ? */
private boolean needToSave = false;
- private static final CRC32 checksumCalculator = new CRC32();
private IPath javaPluginLocation = null;
/* can only replace a current state if its less than the new one */
@@ -134,7 +133,7 @@ public IPath computeIndexLocation(IPath containerPath) {
IPath indexLocation = (IPath) this.indexLocations.get(containerPath);
if (indexLocation == null) {
String pathString = containerPath.toOSString();
- checksumCalculator.reset();
+ CRC32 checksumCalculator = new CRC32();
checksumCalculator.update(pathString.getBytes());
String fileName = Long.toString(checksumCalculator.getValue()) + ".index"; //$NON-NLS-1$
if (VERBOSE)

Back to the top