thiagolocatelli / parse4j

Java Library to deal with Parse (parse.com) REST API
http://thiagolocatelli.github.io/parse4j
143 stars 117 forks source link

setData() in ParseObject is broken #34

Closed sidiabale closed 9 years ago

sidiabale commented 9 years ago

The current implementation of ParseObject.setData() performs the following operations after the data has been set which effectively clears the set data. This operation should be performed at the beginning of the method instead of at the end.

this.isDirty = false;
this.operations.clear();
this.dirtyKeys.clear();

A known issue caused by this defect is that after logging in on a ParseUser object, the user information is unavailable.

sidiabale commented 9 years ago

I figured that this is not an issue since the data.clear() isn't called here so I'm closing