From e72c186ef19ba194ea3dcae6d33e7b0a47e4e77d Mon Sep 17 00:00:00 2001 From: Donald Woods Date: Thu, 25 Jun 2009 15:07:34 +0000 Subject: [PATCH] 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 --- .../src/main/java/org/apache/openjpa/meta/FieldMetaData.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/meta/FieldMetaData.java b/openjpa-kernel/src/main/java/org/apache/openjpa/meta/FieldMetaData.java index 5053ba35f..0303f7d5e 100644 --- a/openjpa-kernel/src/main/java/org/apache/openjpa/meta/FieldMetaData.java +++ b/openjpa-kernel/src/main/java/org/apache/openjpa/meta/FieldMetaData.java @@ -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) comp); return JavaTypes.toArray(l, _elem.getType()); case JavaTypes.COLLECTION: if (val instanceof List) - Collections.sort((List) val, comp); + Collections.sort((List) val, (Comparator) comp); return val; default: throw new MetaDataException(_loc.get("cant-order", this));