RE: static/inherit problem

2003-04-04 Thread Keith Hatton
-Original Message- From: wleana [mailto:[EMAIL PROTECTED] Sent: 03 April 2003 23:04 To: [EMAIL PROTECTED] Subject: Re: static/inherit problem It doesn't make the difference...:-( Of course, make it non-static will work technically, but conceptually it is not correct, and performance-wise not right

RE: static/inherit problem

2003-04-03 Thread Keith Hatton
Perhaps something like this: class A { private static MyLog mLog; protected myId; A(){ this(A); } protected A(String id) { myId = id; init myLog with myId... } public void doSth(String aMsg){ mLog.debug(aMsg); } } class B extends A{ B(){ super(B); } } Keith -Original

Re: static/inherit problem

2003-04-03 Thread wleana
It doesn't make the difference...:-( Of course, make it non-static will work technically, but conceptually it is not correct, and performance-wise not right either... This should be a very common problem, how does everyone handling this? --- In [EMAIL PROTECTED], Keith Hatton [EMAIL PROTECTED]