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 83999

Summary: "Code Completion" contain enum items only in functions
Product: cnd Reporter: soldatov <soldatov>
Component: Code CompletionAssignee: Vladimir Voskresensky <vv159170>
Status: VERIFIED WORKSFORME    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description soldatov 2006-09-01 10:28:28 UTC
Open this file:
--------------------------------------------------------
enum TYPE {INT, UNSIGNED_INT, LONG_INT, UNSIGNED_LONG_INT, UNKNOWN};
unsigned long maxlmt[4]={INT_MAX, UINT_MAX, LONG_MAX, ULONG_MAX};

int main(int argc, char** argv) {
    
    return (EXIT_SUCCESS);
}

--------------------------------------------------------
Code Comletion list doesn't contain INT, UNSIGNED_INT, LONG_INT,
UNSIGNED_LONG_INT, UNKNOWN items, when I initialize "maxlmt" array
Comment 1 soldatov 2006-09-01 10:36:50 UTC
Sorry I added wrong code. It correct code:
---------------------------------------------------------
enum TYPE {INT_MAX, UNSIGNED_INT, LONG_INT, UNSIGNED_LONG_INT, UNKNOWN};
unsigned long maxlmt[4]={INT_MAX, INT_MAX, LONG_INT, UNKNOWN};

int main(int argc, char** argv) {
    
    return (0);
}

---------------------------------------------------------
Comment 2 soldatov 2007-04-06 13:41:42 UTC
I cannot reproduce this bug now
Comment 3 soldatov 2008-02-28 09:29:00 UTC
verified in NetBeans IDE Dev (Build 200802270005)