ObjectWeb Consortium
Search ObjectWeb Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | oscar List | December 2005 Index

<--  Date Index  --> <--  Thread Index  -->

Re: [oscar] Multiple instances of same class?



Never mind...

I noticed after my post (as usual!) that I was not properly importing the packing into the bundle that was using the service.

Interesting how that works...


Cheers,
Dave



On Dec 24, 2005, at 12:43, David Leangen wrote:


Hello!

If I have:

public interface SomeInterface
{
}

and

public class SomeClass implements SomeInterface
{
}


Is it possible that, during runtime:

(SomeClass instanceof SomeInterface) can still return false?

If so, how can I avoid this?


In effect, this is exactly what is happening to me, and I am suspecting that it has to do with classloaders and the possibility that, although the statement should be true, the JVM is testing against a different instance of the interface, so does not return what I expect.


Any light shed on this would be most useful.


Thanks!
Dave




--
You receive this message as a subscriber of the oscar@xxxxxxxxxxxxx mailing list.
To unsubscribe: mailto:oscar-unsubscribe@xxxxxxxxxxxxx
For general help: mailto:sympa@xxxxxxxxxxxxx?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws




<--  Date Index  --> <--  Thread Index  -->

Reply via email to:

Powered by MHonArc.

Copyright © 1999-2005, ObjectWeb Consortium | contact | webmaster.