stevedlawrence opened a new pull request, #849:
URL: https://github.com/apache/daffodil/pull/849

   Currently, min/max/Inclusive/Exclusive restriction facets are converted to 
BigDecimal during compilation, and parsed values are converted to BigDecimal to 
compare against those values when validation is enabled. However, float and 
double types can parse to infinity or not-a-number, which cannot be converted 
to a BigDecimal and causes an abort.
   
   To fix this, when checking min/max/Inclusive/Exclusive restrictions we first 
check if the data is a float or a double, and if so we convert the facet 
BigDecimal value to a float or double, and use the Float/Double compareTo 
function which handles Inf/NaN appropriately.
   
   DAFFODIL-2720


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to