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:
parent
0a80b06634
commit
cfa105d23c
2 changed files with 13 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue