From dee30b64c35d68b2daf0957501c490f364ad6166 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Sat, 12 Mar 2011 18:24:35 +0000 Subject: [PATCH] merge r1079712,r1079716 from trunk to fix the docvalues hudson build git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/docvalues@1080963 13f79535-47bb-0310-9956-ffa450edef68 --- lucene/src/java/org/apache/lucene/search/SortField.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lucene/src/java/org/apache/lucene/search/SortField.java b/lucene/src/java/org/apache/lucene/search/SortField.java index 08047106f4c..b83318e5c21 100644 --- a/lucene/src/java/org/apache/lucene/search/SortField.java +++ b/lucene/src/java/org/apache/lucene/search/SortField.java @@ -101,7 +101,11 @@ public class SortField { private int type; // defaults to determining type dynamically private Locale locale; // defaults to "natural order" (no Locale) boolean reverse = false; // defaults to natural order - private CachedArrayCreator creator; + + // This is not generified because of a javac bug in early JDK 1.5 (e.g. used by FreeBSD). + // With as type param, getComparator() fails to compile because of cast problems. + @SuppressWarnings("unchecked") private CachedArrayCreator creator; + public Object missingValue = null; // used for 'sortMissingFirst/Last' // Used for CUSTOM sort