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.
Remove console message: trying to write non-writable typedef:FileImpl @1838746662 /home/as204739/NetBeansProjects/Application_5/newfile.cTYPEDEF Pkg[199-202] typedef doesn't have container at all Test case is: --------------------------- struct _link_ { }; void findiop(void) { typedef union { struct { struct _link_ hdr; } Pkgn; struct { struct _link_ hdr; } Pkgr; } Pkg; Pkg *pkgp; } ---------------------------
Problem in typedef that defined in function body. Two bags: - this typedef registered in the project - typedef is saved in repository - if user changed file a lot of different typedefs are stored in the repository and are not removed. So repository size grows up.
fixed in release65_cnd_freeze branch, chang eset: http://elif.russia.sun.com/hg/release65_cnd_freeze/rev/5bdc16e36682 Please, review fix
I reviewed the fix. I confirm that it is correct and safe.
QA, please test the fix in release65_cnd_freeze.
verified in build from endif
fixed in main trunk, change set: http://hg.netbeans.org/main/rev/d6a936b240a4
Integrated into 'main-golden', will be available in build *200810091401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/d6a936b240a4 User: Alexander Simon <alexvsimon@netbeans.org> Log: fixed: IZ#149457:console output:trying to write non-writable typedef
Such regression appeared after this patch: void unix_parse_conf_file() { typedef struct { const char *label; const int value; } Section; const Section sections[] = { { "" , 1 }, { "[File I/O Security]", 2 }, { "[Shellout Security]", 3 }, { "[Permitted Paths]" , 4 } }; int i = sections[0].value; // <-- 'value' is highlighted as invalid identifier }
fixed regression in release65_cnd_freeze, change set: http://elif.russia.sun.com/hg/release65_cnd_freeze/rev/5aecf83304a9 Please, review fix
I'm OK with this fix. BTW, a similar fix may be needed for CSM_ENUM_DECLARATION as well.
fixed in main trunk, change set: http://hg.netbeans.org/main/rev/fb738e1e7a79
Integrated into 'main-golden', will be available in build *200810140201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/fb738e1e7a79 User: Alexander Simon <alexvsimon@netbeans.org> Log: fixed: IZ#149457:console output:trying to write non-writable typedef - fix regression