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 197090 - when edit c++ Source file, got "Method does not have declaration" for member functions for sub-inner class
Summary: when edit c++ Source file, got "Method does not have declaration" for member ...
Status: RESOLVED WORKSFORME
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: nnnnnk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-25 12:41 UTC by changhua
Modified: 2011-05-06 10:31 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 changhua 2011-03-25 12:41:49 UTC
Product Version = NetBeans IDE 7.0 Beta 2 (Build 201102140001)
Operating System = Linux version 2.6.35-28-generic running on amd64
Java; VM; Vendor = 1.6.0_24
Runtime = Java HotSpot(TM) 64-Bit Server VM 19.1-b02


when edit c++ Source file,
I got "Method does not have declaration" for member functions for sub-inner class,

also the Navigator window display is wrong (only wrong with Source file,  when focus on Header file it's OK),
it take "~A_sub_B(void)" as an field directly from "A", 

   A
        + A_sub_B()
        + ~A_sub_B()

but it was expected to be hireachy of:
   A
     + A_sub_B
        + A_sub_B()
        + ~A_sub_B()

#############
following definition in c++ Header file:
#############
class A
{
   ...  ...
    class A_sub_B {
              ... ...
            A_sub_B();
            ~A_sub_B(void);
            
    }
  ... ...

}


#############
following implementation in c++ Source file:
#############
A::A_sub_B::
    ~A_sub_B(void)
<==== Method does not have declaration
{


}
Comment 1 nnnnnk 2011-05-06 10:31:17 UTC
work's for me...

// in your sample you've forgotten to add ';' in class declarations.
// I guess that in real code they are in place.