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 241278

Summary: Error indication remains after correction and recompilation
Product: cnd Reporter: aschwarz1309 <aschwarz1309>
Component: Code ModelAssignee: issues@cnd <issues>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: P4    
Version: 7.4   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log

Description aschwarz1309 2014-02-01 21:51:27 UTC
Product Version = NetBeans IDE 7.4 (Build 201310111528)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_40
Runtime = Java HotSpot(TM) 64-Bit Server VM 24.0-b56

Win7
gcc 4.8.2 (cygwin)

The error is not critical only annoying.

After removing a value from an enum, recompiling and correcting errors, then recompiling without error, Netbeans retains the error indication and error messages for the missing enum value.

For example:
 o o o
enum xyz { A = 1, B - 2 };

 o o o

if  (xyz::A) then o o o

and changing to:

 o o o 

enum xyz { B = 2 };

 o o o

if  (xyz::A) then o o o   // will be in error. Correcting to:

if (xyz::B) then o o o  // the error indication remains although the compilation is successful.
Comment 1 aschwarz1309 2014-02-01 21:51:31 UTC
Created attachment 144684 [details]
IDE log
Comment 2 Vladimir Voskresensky 2014-11-21 13:50:15 UTC
works fine in trunk