apache / apache/lucene

surpriseMePolygon and createRegularPolygon in test util class returns invalid polygon

Open
#12,596 2 comments 0 reactions 0 assignees View on GitHub
type:bug
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

### Description

https://github.com/apache/lucene/blob/main/lucene/test-framework/src/java/org/apache/lucene/tests/geo/ShapeTestUtil.java

surpriseMePolygon and createRegularPolygon returns invalid polygon where three or more points having same value due to type casting from double to float.

### Version and environment details

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.