cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <va...@reverycodes.com>
Subject Re: ObjectModel exception
Date Wed, 26 Sep 2007 20:30:14 GMT
Leszek Gawron wrote:
>>> Lately I keep getting these:
>>>
>>>> java.lang.ClassCastException: org.mozilla.javascript.NativeObject
>>>>     at com.mobilebox.smart.model.Contractor.equals(Contractor.java:335)
>>>>     at java.util.ArrayList.remove(ArrayList.java:424)
>
> Question is why is my entity 
> Contractor equalized to [some other object]?

Because James Gosling said so! :)

That's how array list works. You should return false in equals() to follow Java 
standards, and you'll be set.

Vadim

Mime
View raw message