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 - can't dectect error when no class declaration in a .h file
Summary: can't dectect error when no class declaration in a .h file
Status: RESOLVED WORKSFORME
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 6.x
Hardware: All All
: P4 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-02 20:54 UTC by Thomas Preisler
Modified: 2014-08-25 15:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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