On Tue, 14 Aug 2001 00:04, Berin Loritsch wrote:
> I want to know if this will work:
>
> 1) Compile a Component against a Work interface with
>    a static final Version object set to 1.0.0.

That should work! ;)

> 2) Run the Component in an environment where the interface
>    is different (i.e. 1.0.1).

I think that should fail - however the reverse should be possible. (ie run a 
1.0.1 in a 1.0.0 environment).

Remembering that a minor version does not make any binary incompatible 
changes or any changes to semantics. (Just docco fixxes and added forward 
compatible features).

> 3) Test the Component's interface version and get the one
>    it was compiled against.

You mean something like MyWorker.VERSION - that should be workable.

> Is this in anyway possible?  Or do we need to state the
> Version in every object that implements it?

Thats one way of doing it. Another is to actually implement proper 
ClassLoaders that follow the jdk1.3 spec with respect to package dependencies 
and version interfaces at package level.

-- 
Cheers,

Pete

*-----------------------------------------------------*
* "Faced with the choice between changing one's mind, *
* and proving that there is no need to do so - almost *
* everyone gets busy on the proof."                   *
*              - John Kenneth Galbraith               *
*-----------------------------------------------------*

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

Reply via email to