I'm trying to delete a DataObject with a dependent relationship. If I resolve the relationship first, it works. If I don't resolve it first, I get a ClassCastException (in both 1.03 and 1.04).
DataContext's delete method uses DataObject's readPropertyDirectly to get the related object, then casts it to DataObject. If the relationship hasn't been resolved, readPropertyDirectly returns a RelationshipFault, not a DataObject. Hence the ClassCastException.
Should readPropertyDirectly be returning a RelationshipFault or should it be resolving the relationship and returning the related object. The latter behaviour seems safer, but is it correct?
Thanks,
Terry Wilcox
Entero Corporation
terry.wilco..ntero.com
This archive was generated by hypermail 2.0.0 : Fri Dec 19 2003 - 16:35:44 EST