Different result on java8 vs java9/10/11

Description

This code:

1 2 3 4 5 6 final GeodeticCalculator geoCalc = new GeodeticCalculator(); geoCalc.setStartingGeographicPoint(srcLat, srcLng); geoCalc.setDestinationGeographicPoint(dstLat.doubleValue(), dstLng.doubleValue()); return BigDecimal.valueOf(geoCalc.getOrthodromicDistance()).divide(BigDecimal.valueOf(1000D), 20, RoundingMode.HALF_UP);

with input parameters:
srcLat=42.38423
srcLng=24.48833
dstLat=42.6978388
dstLng=23.32166987

under java8 produces result 133.10289158351714000000 and under java9/10/11 produces result 133.10289158351783000000
Which one is correct?

Environment

None

Status

Assignee

Unassigned

Reporter

Petar Tahchiev

Priority

Medium
Configure