So while the JRE is happy to serialize arrays, EHCache is reluctant to do so in at least one place (presumably an explicit Serializable test). Let's switch to an ArrayList until further notice.

This commit is contained in:
Par Winzell
2007-11-11 20:29:38 +00:00
parent f052584607
commit 8fbdf7470d
4 changed files with 26 additions and 20 deletions
@@ -117,7 +117,7 @@ public abstract class FindAllQuery<T extends PersistentRecord>
// Single-column keys result in the compact IN(keyVal1, keyVal2, ...)
Comparable[] keyFieldValues = new Comparable[fetchKeys.size()];
for (int ii = 0; ii < keyFieldValues.length; ii ++) {
keyFieldValues[ii] = fetchKeys.get(ii).condition.getValues()[0];
keyFieldValues[ii] = fetchKeys.get(ii).condition.getValues().get(0);
}
condition = new In(_type, _marsh.getPrimaryKeyFields()[0], keyFieldValues);