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.
Created attachment 135799 [details] example project Sample code: typedef struct { int8_t Type; int32_t Width; int32_t Height; } Object1; typedef struct { int8_t Type; int32_t Width; int32_t Height; } Object2; int main() { Object1 o1; Object2 o2; o2.Type = o1.Type; o2.Width = o1.Width; o2.Height = o1.Height; return o2.Width; } Now, try to rename Object2.Type to 'Type2' -> field Type in Object1 will also be renamed. Sample project included. I'v found it not happens if structures are defined and used in the same file, thus, definitions in my example are in welcome.h --- Product Version = NetBeans IDE 7.3 (Build 201302132200) Operating System = Windows XP version 5.1 running on x86 Java; VM; Vendor = 1.7.0_11 Runtime = Java HotSpot(TM) Client VM 23.6-b04
Please evaluate against Show Stopper status
is it reproducible in 7.4? If it is only for patching purpose and not seen in 7.4 then please put NO74 keyword here
(In reply to comment #2) > is it reproducible in 7.4? If it is only for patching purpose and not seen in > 7.4 then please put NO74 keyword here Please disreagard
I should mention here that FindUsages acts very the same. If some field name occurs in two different structures, NB is not recognizing it and returns all occurrences of this name
Egor, could you pls evaluate this bug.
confirmed in 7.4
not a showstopper for beta
http://hg.netbeans.org/cnd-main/rev/6bc926a0ea77
Integrated into 'main-golden', will be available in build *201306242301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/6bc926a0ea77 User: Vladimir Voskresensky <vv159170@netbeans.org> Log: fixed #231272 - Renaming of fields does not recognize type the field belongs