This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
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] patch
For example see 3 declaration/definitions of class Client_i in ACE-TAO: ACE_wrappers/TAO/orbsvcs/tests/Time/Client_i.cpp ACE_wrappers/TAO/examples/Simple/chat/Client_i.cpp ACE_wrappers/TAO/performance-tests/Cubit/TAO/MT_Cubit/client.cpp 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: http://hg.netbeans.org/cnd-main/rev/625c818ecffe
Integrated into 'main-golden', will be available in build *201006030001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/625c818ecffe User: Alexander Simon <alexvsimon@netbeans.org> Log: fixed BZ#187070 do not use findDeclaration() and findClassifier() methods for model resolving