Stephen McConnell wrote:

Joerg Buchberger wrote:
Are you sure, that the interface and the component should
have equal hash codes,
even though the components interface is not equal to the
component itself?

Thinking about it a bit ... no I'm not sure ... but hang on and I'll run a test.

I'm wrong. Here is the result of doing the same thing in Merlin.

[INFO   ] (subsidiary.complex): here: 31299729
[INFO   ] (subsidiary.complex): there: 23603795

But ... I think I'm on the right track because of the fact that when you do the instanceOf test, it is failing. This is a classic indicator that two different instance of the interface class exist within different classloaders.

Cheers, Steve.


Stephen.




--

|------------------------------------------------|
| Magic by Merlin                                |
| Production by Avalon                           |
|                                                |
| http://avalon.apache.org/merlin                |
| http://dpml.net/merlin/distributions/latest    |
|------------------------------------------------|

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



Reply via email to