OPENJPA-1143 fix 2 build errors only flagged in Eclipse (was using Galileo and Sun JDK 6)

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@788381 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Donald Woods 2009-06-25 15:07:34 +00:00
parent 44443b3ebd
commit e72c186ef1
1 changed files with 2 additions and 2 deletions

View File

@ -1255,11 +1255,11 @@ public class FieldMetaData
switch (getTypeCode()) {
case JavaTypes.ARRAY:
List l = JavaTypes.toList(val, _elem.getType(), true);
Collections.sort(l, comp);
Collections.sort(l, (Comparator<? super Order>) comp);
return JavaTypes.toArray(l, _elem.getType());
case JavaTypes.COLLECTION:
if (val instanceof List)
Collections.sort((List) val, comp);
Collections.sort((List) val, (Comparator<? super Order>) comp);
return val;
default:
throw new MetaDataException(_loc.get("cant-order", this));