ObjectWeb Consortium
Search ObjectWeb Mail Archive: 

Advanced Search - Powered by Google

Mail Archive Home | oscar List | December 2005 Index

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

Multiple instances of same class?


If I have:

public interface SomeInterface


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.


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

Reply via email to:

Powered by MHonArc.

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