avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Royal <pro...@managingpartners.com>
Subject Re: ContainerManager abstraction
Date Tue, 05 Feb 2002 21:02:49 GMT
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:   <mailto:avalon-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-dev-help@jakarta.apache.org>


Mime
View raw message