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.

Bug 221835

Summary: Code model can be broken by different ways on the simplest project with two configurations
Product: cnd Reporter: Alexander Simon <alexvsimon>
Component: Code ModelAssignee: Vladimir Voskresensky <vv159170>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.3   
Hardware: PC   
OS: Solaris   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 221537    
Attachments: project
Open project in IDE and provide this layout
attempt to fix project events

Description Alexander Simon 2012-11-09 14:57:50 UTC
Created attachment 127481 [details]
project

The attachment contains project with two configurations.
- GNU configuration uses GNU tool collection
- SUN configuration uses SUN configuration
Comment 1 Alexander Simon 2012-11-09 15:02:40 UTC
Created attachment 127482 [details]
Open project in IDE and provide this layout

Note:
- left string editor opens string from Oracle Solaris Studio tool collectin
- right string editor opens string from GNU tool collection
Comment 2 Alexander Simon 2012-11-09 15:15:41 UTC
Expected behavior:
1. Selected SUN configuration.
- there is no redness in sun.cpp
- there is no navigator for gnu.cpp
- left string without redness
- right string has redness, navigator say "Limited CA"
- hyperlink sun.h:<string> go to left string
- hyperlink gnu.h:<string> go to left string
2. Select GNU configuration.
- there is no navigator for sun.cpp
- there is no redness in gnu.cpp
- left string has redness, navigator say "Limited CA"
- right string without redness
- hyperlink sun.h:<string> go to right string
- hyperlink gnu.h:<string> go to right string
3. repeat 1.
4. repeat 2.

Actual behavior:
- any assertion can be easy broken
Comment 3 Alexander Simon 2012-11-09 15:20:11 UTC
Most likely this bug explains unpredictable behavior described in the bug #221537
Comment 4 Alexander Simon 2012-11-09 15:26:35 UTC
Created attachment 127488 [details]
attempt to fix project events

Unfortunately, code model does mot manage to right process fixed events.