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

Reply via email to