PDA

View Full Version : [FIXED] DataViewBinder.onSort always causes a ClassCastException



dijimon
27 Aug 2008, 3:15 AM
GXT version 1.0.2
Class: DataViewBinder
Method: onSort(StoreEvent se)

On line 151 of DataViewBinder.java is the following code:

DataListItem item = (DataListItem) findItem(m);However if you look at the code in findItem(m) it actually returns a DataViewItem:


for (DataViewItem item : view.getItems()) {
if (store.getModelComparer().equals((M) item.getModel(), model)) {
return item;
}
}
This causes a ClassCastException everytime this code is invoked.

darrellmeyer
27 Aug 2008, 6:44 AM
This was previously fixed in SVN. The fix will go out in the next release (1.0.3 by tomorrow).