Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
0.9.7, 0.10.0
-
None
-
None
-
log4cxx 0.9.7 on Linux
Description
Hi,
the macro DECLARE_LOG4CXX_OBJECT declares a new class with a virtual function, but doesn't declare a virtual destructor. gcc 3.2.3 complains this...
The following is the new macro definition fixing the bug (for the code in CVS head):
#define DECLARE_LOG4CXX_OBJECT(object)\
public:\
class Class##object : public helpers::Class\
{\
public:\
Class##object() : helpers::Class() {}\
virtual ~Class##object() {}\
virtual const log4cxx::logchar* getName() const
\
virtual helpers::ObjectPtr newInstance() const\
\
};\
The DECLARE_ABSTRACT_LOG4CXX_OBJECT macro has the same problem, but only in CVS head, not in 0.9.7.