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 271341 - Erroneus error messages
Summary: Erroneus error messages
Status: NEW
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.2
Hardware: PC Windows 7
: P4 normal (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-22 00:23 UTC by aschwarz1309
Modified: 2017-08-22 00:23 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (60.36 KB, text/plain)
2017-08-22 00:23 UTC, aschwarz1309
Details

Note You need to log in before you can comment on or make changes to this bug.
Description aschwarz1309 2017-08-22 00:23:01 UTC
Product Version = NetBeans IDE 8.2 (Build 201705191307)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.8.0_111
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.111-b14

Reproducibility: Happens every time

STEPS:
  * Open C++ File


ACTUAL:
 Various constructs are marked as errors and they are not.

EXPECTED:
  Error free viewing

For the last, oh, maybe ten (10) years Netbeans has flagged legal staements as error. Some of the example code is below:
---------- All instances of "this->flags"  is marked as "unable to resolve identifier flags"
   class Flags {
      const uint allFlags;
      const uint SHIFT;
      uint       state = 0;
      uint       flags;
	public:
      Flags(uint allFlags, const uint SHIFT) : allFlags(allFlags), SHIFT(SHIFT), flags(0) { }
      uint flag() { return flags; }
      uint index(){ return (flag() >> SHIFT); }
       int getAllFlags() { return allFlags; }
      uint getFlags() { return flags; }
      uint setFlags(uint flags) { 
         if (flags) this->flags | flags;
         else if (!state) this->flags = allFlags;
         state++;
         return this->flags;
      }
   };

----- All instances of" str.c_str() " and "str.size()" is marked as "unable to resolve identifer c_str() size()"
               string str;
               while((str = parseOptions(in)).size()) {
                  if      (!strncmp(str.c_str(), "bins", str.size())) workingFlags |= OPTION_BINS;
                  else if (!strncmp(str.c_str(), "map", str.size())) workingFlags |= OPTION_MAP;
                  else if (!strncmp(str.c_str(), "node", str.size())) workingFlags |= OPTION_NODE;
                  else if (!strncmp(str.c_str(), "statistics", str.size())) workingFlags |= OPTION_STAT;

and so on.
Comment 1 aschwarz1309 2017-08-22 00:23:06 UTC
Created attachment 164985 [details]
IDE log