diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/io/eval/TemporalEvaluator.java b/solr/solrj/src/java/org/apache/solr/client/solrj/io/eval/TemporalEvaluator.java index 884653f01c2..16942367ef7 100644 --- a/solr/solrj/src/java/org/apache/solr/client/solrj/io/eval/TemporalEvaluator.java +++ b/solr/solrj/src/java/org/apache/solr/client/solrj/io/eval/TemporalEvaluator.java @@ -83,7 +83,7 @@ public abstract class TemporalEvaluator extends ComplexEvaluator { } } - throw new IOException(String.format(Locale.ROOT, "Invalid parameter %s - The parameter must be a string formatted ISO_INSTANT or of type Instant,Date or LocalDateTime.", String.valueOf(tupleValue))); + throw new IOException(String.format(Locale.ROOT, "Invalid parameter %s - The parameter must be a string formatted ISO_INSTANT or of type Long,Instant,Date,LocalDateTime or TemporalAccessor.", String.valueOf(tupleValue))); } public abstract Object evaluateDate(TemporalAccessor aDate) throws IOException; diff --git a/solr/solrj/src/test/org/apache/solr/client/solrj/io/stream/eval/TemporalEvaluatorsTest.java b/solr/solrj/src/test/org/apache/solr/client/solrj/io/stream/eval/TemporalEvaluatorsTest.java index a6c590bf6e5..6f8c788711c 100644 --- a/solr/solrj/src/test/org/apache/solr/client/solrj/io/stream/eval/TemporalEvaluatorsTest.java +++ b/solr/solrj/src/test/org/apache/solr/client/solrj/io/stream/eval/TemporalEvaluatorsTest.java @@ -132,7 +132,7 @@ public class TemporalEvaluatorsTest { Object result = evaluator.evaluate(new Tuple(values)); assertTrue(false); } catch (IOException e) { - assertEquals("Invalid parameter 12 - The parameter must be a string formatted ISO_INSTANT or of type Instant,Date or LocalDateTime.", e.getMessage()); + assertEquals("Invalid parameter 12 - The parameter must be a string formatted ISO_INSTANT or of type Long,Instant,Date,LocalDateTime or TemporalAccessor.", e.getMessage()); } try { @@ -150,7 +150,7 @@ public class TemporalEvaluatorsTest { Object result = evaluator.evaluate(new Tuple(values)); assertTrue(false); } catch (IOException e) { - assertEquals("Invalid parameter - The parameter must be a string formatted ISO_INSTANT or of type Instant,Date or LocalDateTime.", e.getMessage()); + assertEquals("Invalid parameter - The parameter must be a string formatted ISO_INSTANT or of type Long,Instant,Date,LocalDateTime or TemporalAccessor.", e.getMessage()); } values.clear();