cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leszek Gawron <lgaw...@mobilebox.pl>
Subject Re: ObjectModel exception
Date Wed, 26 Sep 2007 20:58:39 GMT
Grzegorz Kossakowski wrote:
> Leszek Gawron pisze:
>> Grzegorz Kossakowski wrote:
>>> Leszek Gawron pisze:
>>>
>>> Yep. Contrary to the old OM handling the new one demands equals()
>>> method properly implemented for
>>> all objects put on OM.
>>>
>>> Is it something bad?
>> I have no idea :) why such requirement? 
> 
> Because stack implementation used to maintain local scopes uses some variation of ListArray
class
> that uses equals() when remove() method is called. Just for efficiency I guess that real
scope could
> be implemented and need for proper equals() implementation would be eliminated but I
think it's
> minor issue.
> 
>> Question is why is my entity
>> Contractor equalized to javascript NativeObject?
> 
> Most probably because you are having some NativeObjects produced by flow put on OM. That's
enough to
> obtain such effect. Anyway, it is valid to call equals() with object of different class
passed as
> parameter. In such case, equals() should return false before trying to cast.

Yeah I know that but why isn't the NativeObject unwrapped for comparison?

-- 
Leszek Gawron                         http://www.mobilebox.pl/krs.html
CTO at MobileBox Ltd.


Mime
View raw message