[Uml-devel] [Bug 134729] New: code import - partial class declaration error

Rafal Molotkiewicz molotster at gmail.com
Wed Sep 27 08:14:56 UTC 2006


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=134729         
           Summary: code import - partial class declaration error
           Product: umbrello
           Version: unspecified
          Platform: Gentoo Packages
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: umbrello-devel.kde.org
        ReportedBy: molotster gmail com


Version:           1.5.4 (using KDE KDE 3.5.3)
Installed from:    Gentoo Packages
Compiler:          gcc 3 & 4 compiler-independent error
OS:                Linux

The following code style is perfectly ok in c++, and often needed:

//------------
class Application; //Just to make Application available to ApplicationError class

class ApplicationError
{
  ApplicztionError(Application&);
  //some other code
}

class Application
{
  //Real functions and members of Application class
}
//------------

However, Umbrello imports header, it creates class using first entry - the class appears empty - and ignores real class description that appears later in the file.

Proposed solution:
If class has no {} after it, it should be ignored. If the end of imports is reached without more complex declaration, it's the only case when such empty class should be used.




More information about the umbrello-devel mailing list