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.
Summary: | "Typedef enum" name is not shown in class view | ||
---|---|---|---|
Product: | cnd | Reporter: | Vladimir Kvashin <vkvashin> |
Component: | Code Model | Assignee: | Vladimir Voskresensky <vv159170> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 7.3 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | Navigator content |
Description
Vladimir Kvashin
2013-05-29 16:33:00 UTC
Created attachment 135089 [details]
Navigator content
The statement wasn't quite correct. It shows both unnamed enum and typedef, and both are expandable. This is inconsistent with the way "typedef struct" is processed: for the later only one node is shown (and sure it has a name) Here is code example that corresponds to the attached image typedef enum { None = 0x0, In = 0x1, Inout = 0x2, } Kind; typedef struct { int x; int y; } Point; Debugger shows that for a union getEnclosingTypedefs() called from CppDeclarationNode.nodeFactory(CppDeclarationNode.java:505) return empty collection, while for struct it returns non empty one. Fixed during fixing bug 243510 |