On 12/4/05, Achim Hügen <[EMAIL PROTECTED]> wrote:

> I assume that the map access doesn't work because
> it uses different keys for storing and retrieval.
> Hivemind doesn't hand in instances of the Apple and Banana
> class in the constructor, but proxies that are descendants of
> the original classes.
> That means, that apple.getClass() is not equivalant to Apple.class.

Well, haven't thought about that, thanks Achim

> Try to verify this by adding a
>
> System.out.println(apple.getClass().getName()) to the constructor.
>
> and solve it by using:
>
> bowl.put(Apple.class, apple);
> bowl.put(Banana.class, banana);

Its not an option to modify that source (even if actually that's more
precise), I've to look elsewhere.

I'll try and report back, thanks again.

--
Massimo
http://meridio.blogspot.com

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

Reply via email to