From 230de802bc01eaf44413ced5369e4f964df233bb Mon Sep 17 00:00:00 2001 From: nitind Date: Wed, 14 Feb 2007 23:37:39 +0000 Subject: [174139] ClassCastException: Indexers have to use IPath instead of String --- .../eclipse/jst/jsp/core/internal/java/search/JSPSearchSupport.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/java/search/JSPSearchSupport.java') diff --git a/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/java/search/JSPSearchSupport.java b/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/java/search/JSPSearchSupport.java index aaf8de4013..2539c63ec4 100644 --- a/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/java/search/JSPSearchSupport.java +++ b/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/java/search/JSPSearchSupport.java @@ -469,7 +469,7 @@ public class JSPSearchSupport { //how can we make sure participant indexLocations are updated at startup? public final IPath computeIndexLocation(IPath containerPath) { - String indexLocation = null; + IPath indexLocation = null; // we don't want to inadvertently use a JDT Index // we want to be sure to use the Index from the JSP location //Object obj = indexLocations.get(containerPath); @@ -483,14 +483,14 @@ public class JSPSearchSupport { String fileName = Long.toString(this.fChecksumCalculator.getValue()) + ".index"; //$NON-NLS-1$ // this is the only difference from // IndexManager#computeIndexLocation(...) - indexLocation = getModelJspPluginWorkingLocation().append(fileName).toOSString(); + indexLocation = getModelJspPluginWorkingLocation().append(fileName); // pa_TODO need to add to java path too, so JDT search support knows // there should be a non internal way to do this. // https://bugs.eclipse.org/bugs/show_bug.cgi?id=77564 JavaModelManager.getJavaModelManager().getIndexManager().indexLocations.put(containerPath, indexLocation); //} - return new Path(indexLocation); + return indexLocation; } // copied from JDT IndexManager -- cgit v1.2.3