Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 322269

Summary: StandaloneIndexerTask creates status with a wrong status code
Product: [Tools] CDT Reporter: John Liu <john_ws_liu>
Component: cdt-indexerAssignee: Vivian Kong <vivkong>
Status: RESOLVED FIXED QA Contact: Markus Schorn <mschorn.eclipse>
Severity: normal    
Priority: P3 CC: vivkong
Version: 7.0   
Target Milestone: 7.0.1   
Hardware: PC   
OS: Windows XP   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=321376
Whiteboard:
Attachments:
Description Flags
a patch applied to org.eclipse.cdt.internal.core.indexer.StandaloneIndexerTask
none
a patch applied to org.eclipse.cdt.internal.core.indexer.StandaloneIndexerTask (copyright updated) vivkong: iplog+

Description John Liu CLA 2010-08-10 14:52:48 EDT
Build Identifier: 

This is a bug found during the investigation of the bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=321376

StandaloneIndexerTask creates exception status set IStatus.ERROR as the status code which collides with CCorePlugin.STATUS_PDOM_TOO_LARGE, so that it may report false exception for CCorePlugin.STATUS_PDOM_TOO_LARGE error.





Reproducible: Always
Comment 1 John Liu CLA 2010-08-10 14:56:01 EDT
Created attachment 176265 [details]
a patch applied to org.eclipse.cdt.internal.core.indexer.StandaloneIndexerTask

The fix just remove the IStatus.ERROR from function's staus code argument, so the status is created by the default status code, the implementation is then consistent with CCorePlugin's implementation to the same functions.

The fix has been discussed with Markus in the bug, https://bugs.eclipse.org/bugs/show_bug.cgi?id=321376
Comment 2 John Liu CLA 2010-08-10 15:30:19 EDT
Created attachment 176270 [details]
a patch applied to org.eclipse.cdt.internal.core.indexer.StandaloneIndexerTask (copyright updated)
Comment 3 Vivian Kong CLA 2010-08-10 15:44:05 EDT
Applied to cdt_7_0 and HEAD.  Thanks John