You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by th...@apache.org on 2016/04/14 01:21:38 UTC
[22/50] lucene-solr:jira/SOLR-8908: LUCENE-7201: Handle illegal
rectangles during testing.
LUCENE-7201: Handle illegal rectangles during testing.
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/83bde558
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/83bde558
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/83bde558
Branch: refs/heads/jira/SOLR-8908
Commit: 83bde55865f56a5ffe660e0bde780b49b6adc4f8
Parents: 05dc902
Author: Karl Wright <Da...@gmail.com>
Authored: Mon Apr 11 12:55:21 2016 -0400
Committer: Karl Wright <Da...@gmail.com>
Committed: Mon Apr 11 12:55:21 2016 -0400
----------------------------------------------------------------------
.../src/test/org/apache/lucene/spatial3d/TestGeo3DPoint.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/83bde558/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/TestGeo3DPoint.java
----------------------------------------------------------------------
diff --git a/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/TestGeo3DPoint.java b/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/TestGeo3DPoint.java
index 20302b4..deb3587 100644
--- a/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/TestGeo3DPoint.java
+++ b/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/TestGeo3DPoint.java
@@ -560,7 +560,11 @@ public class TestGeo3DPoint extends LuceneTestCase {
case 2: {
// Rectangles
final Rectangle r = GeoTestUtil.nextBox();
- return Geo3DPoint.newBoxQuery(field, r.minLat, r.maxLat, r.minLon, r.maxLon);
+ try {
+ return Geo3DPoint.newBoxQuery(field, r.minLat, r.maxLat, r.minLon, r.maxLon);
+ } catch (IllegalArgumentException e) {
+ continue;
+ }
}
case 3: {