BackendlessSimpleQuery cannot be cast to BackendlessDataQuery

When I run this code

BackendlessCollection<FileInfo> fileInfos = Backendless.Files.listing("/media", "*.jpg", false, 100, 0);
while (fileInfos.getCurrentPage().size() > 0) {
for (FileInfo fi : fileInfos.getCurrentPage()) {
Date createdOn = new Date(fi.getCreatedOn());
if(createdOn.after(lastSyncDate))
downloadFile(fi);
}
fileInfos = fileInfos.nextPage();
}

I get this exception
java.lang.ClassCastException: com.backendless.BackendlessSimpleQuery cannot be cast to com.backendless.persistence.BackendlessDataQuery

On the last line:

fileInfos = fileInfos.nextPage();

Hi Juergen,

This is a bug. It is fixed now. Please grab the latest jar from here and try it out:

Let us know if the problem is gone for you.

Regards,
Mark

I tried the new library (hard-coded the new lib, recompiled, reinstalled the app) but the error is still the same.

Oops, looks like I checked in all the code, but not the build (jar) itself. I stepped out of my office now, but will check it in as soon as I am back.

Regards,
Mark

It is there now. Please try again.

It works now. Thanks.