Thanks Will,

I should not have sent this mail, as I am now going to evaluate the already
implemented JMX log4j configuration. 
But the reason I was asking is because the method should be protected. It
makes no sense to make it public, it will be called by the garbage
collector, even if it is protected.

Regards
Scott

-----Original Message-----
From: Will Wood [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 02, 2001 3:04 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Question


You can't override a method in this case finalize that has weaker access
protections than it's superclass.
Since ultimately that's java.lang.Object you have to make it public.

>>> [EMAIL PROTECTED] 11/02/01 04:40AM >>>
We have just started using log4j, an excellent logging framework. We are
extending it adding some appenders, but i am confused as to why the finalize
method in the AppenderSkeleton class is public. I would have thought that
this should be protected as this method should not be part of the public
interface of the class. Can someone explain to me why it is public? 

The reason i ask is that i am trying to add JMX configuration, but i have
just looked through the newsgroups mail archive and found that some JMX
support is already being added.

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to