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 191584

Summary: can't dectect error when no class declaration in a .h file
Product: cnd Reporter: Thomas Preisler <thp>
Component: Code ModelAssignee: Vladimir Voskresensky <vv159170>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Thomas Preisler 2010-11-02 20:54:34 UTC
From CR 6996669:

No error detected in a .h file when it should be, See attached screen shot.

Note, in the screen shot. line 76, class MachineType is comment out.
line 87 refers to class MachineType
*** (#1 of 1): 2010-11-01 18:09:13 PDT chihin
Comment 1 Alexander Simon 2014-08-25 15:13:37 UTC
Test case:

//class Undefined;
class Test {
    Undefined foo();
};

Undefined should be highlighted as undefined.
Remove comment on forward Undefined class declaration.
The hint "unable to resolve identifier Undefined" should be replace on
"unable to resolve forward declaration Undefined"
Comment 2 Alexander Simon 2014-08-25 15:14:29 UTC
The issue is not reproducible in NB 8.0.1