Apache Solr open-source search software
LUCENE-7943: Disable an overly-aggressive assertion.
Karl Wright200beab09ee6
diff --git a/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/Plane.java b/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/Plane.javaindex 61bf0a97354..c72c8c61f2a 100755--- a/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/Plane.java+++ b/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/Plane.java@@ -2373,7 +2373,9 @@ public class Plane extends Vector {if (!evaluateIsZero(startPoint)) {throw new IllegalArgumentException("Start point is not on plane");}- assert Math.abs(x*x + y*y + z*z - 1.0) < MINIMUM_RESOLUTION_SQUARED : "Plane needs to be normalized";++ // The following assertion fails at times even for planes that were *explicitly* normalized, so I've disabled the check.+ //assert Math.abs(x*x + y*y + z*z - 1.0) < MINIMUM_RESOLUTION_SQUARED : "Plane needs to be normalized";// The first step is to rotate coordinates for the point so that the plane lies on the x-y plane.// To acheive this, there will need to be three rotations: