You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by "Ghorpade, Rajendra" <RG...@onebridge.de> on 2002/03/01 09:41:51 UTC

RE: ContainerManager abstraction

Mike new thing about static final references..I was not knowing this..

-----Original Message-----
From: Peter Royal [mailto:proyal@managingpartners.com]
Sent: Tuesday, February 05, 2002 10:03 PM
To: Avalon Developers List
Subject: Re: ContainerManager abstraction


On Tuesday 05 February 2002 04:03 pm, Berin Loritsch wrote:
> I have noticed something interesting regarding static final references. 
> When I changed CONTEXT_DIRECTORY to "context-root" from
> "Container.contextRoot" I found that my precompiled class held on to its
> original value until it was recompiled.  With that discovery, it is
> feasible to have interface versions that use the Version object, and the
> versions will maintain their value in implementing classes until
> recompiled. Cool beans, eh?

For that example :) I've been bitten by that exact behavior because I'll 
change a constant in one class and a static final ref in other won't get 
compiled when I compile the project. I have to wipe the .class files to
force 
it to compile all. But still, its useful in certain instances :)
-pete

-- 
peter royal -> proyal@managingpartners.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>