I suspect (as others have said) they just don't want you to put
your code there.  First, there are other methods that are called when
closing the bean, so you don't need finalize, and second I imagine certain
containers may do something in finalize in their auto-generated code and
wouldn't know how to handle it if you do something there too (Do you call
super.finalize() before or after?  Who really gets to be last?).

Aaron

On Sun, 11 Jun 2000, Juha Lindfors wrote:
> Hey,
> 
> the spec says for session bean class that it is not allowed to define the
> finalize() method (6.10.2).
> 
> But what about the superclass? There's going the be a finalize method
> somewhere, at least on the Object class. Why can't the session bean class
> define the finalize() method then?
> 
> -- Juha
> 
> 
> 


Reply via email to