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 218705

Summary: UIDs don't work for objects defined in macros
Product: cnd Reporter: nnnnnk <nnnnnk>
Component: Code ModelAssignee: Vladimir Voskresensky <vv159170>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.3   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description nnnnnk 2012-09-20 14:33:59 UTC
There are links to code model objects in repository - UIDs.

If two objects of one kind with the same name (or unnamed) are defined under macro usage they would have one UID.
So one of them would be substituted by another at some moment.
This causes hardly reproducible and unstable code model errors.

Sample:
#define M struct A{struct A{int i;};};
M
void foo() {
    A::A a; 
    a.i++;
}