Code model supports multiply declarations and definitions.
But at resolving time code model resolves declaration <--> definition by methods:
CsmProject.findDeclaration() and CsmProject.findClassifier().
It results in unpredictable resolving of correspondent declaration/definition and unpredictable parser error highlighting.
Model should use CsmProject.findDeclarations() and CsmProject.findClassifiers() and select declaration/definition by visibility containing files.
Created attachment 99743 [details]
For example see 3 declaration/definitions of class Client_i in ACE-TAO:
Due to random matching declaration<->definition IDE has unpredictable error highlighting and navigation.
Proposed paths fixes this problems.
But paths has a side effect: degradation of inaccuracy on boost test project.
Need an additional investigation.
fixed, change set:
Integrated into 'main-golden', will be available in build *201006030001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Alexander Simon <firstname.lastname@example.org>
Log: fixed BZ#187070 do not use findDeclaration() and findClassifier() methods for model resolving