1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00

RESOLVED - bug 272979: reference to CCorePlugin.log(Throwable) in AbstractIndexerTask.runTask() breaks standalone indexing

https://bugs.eclipse.org/bugs/show_bug.cgi?id=272979
This commit is contained in:
Chris Recoskie 2009-04-20 20:41:09 +00:00
parent 0a80b06634
commit cfa105d23c
2 changed files with 13 additions and 1 deletions

View file

@ -234,6 +234,14 @@ public abstract class StandaloneIndexerTask extends AbstractIndexerTask {
protected void logError(IStatus s) {
getLogService().traceLog(s.getMessage());
}
/* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.pdom.AbstractIndexerTask#logException(java.lang.Throwable)
*/
@Override
protected void logException(Throwable e) {
getLogService().traceLog(e.getMessage());
}
@SuppressWarnings("deprecation")
@Override

View file

@ -317,7 +317,7 @@ public abstract class AbstractIndexerTask extends PDOMWriter {
fIndex.flush();
}
} catch (CoreException e) {
CCorePlugin.log(e);
logException(e);
} finally {
fIndex.releaseReadLock();
}
@ -804,6 +804,10 @@ public abstract class AbstractIndexerTask extends PDOMWriter {
protected void logError(IStatus s) {
CCorePlugin.log(s);
}
protected void logException(Throwable e) {
CCorePlugin.log(e);
}
private static int computeHashCode(IScannerInfo scannerInfo) {
int result= 0;