Grzegorz Kossakowski wrote:
Leszek Gawron pisze:
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)
at
org.apache.commons.collections.map.MultiValueMap.remove(MultiValueMap.java:160)
at
org.apache.cocoon.el.impl.objectmodel.ObjectModelImpl.cleanupLocalContext(ObjectModelImpl.java:192)
Though the exception happens somewhere in my business code I feel this
is caused by latest object model refactorings. Grzegorz could you comment?
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? Question is why is my entity
Contractor equalized to javascript NativeObject?
--
Leszek Gawron http://www.mobilebox.pl/krs.html
CTO at MobileBox Ltd.