dxbjavid opened a new pull request, #326:
URL: https://github.com/apache/commons-math/pull/326

   CompositeFormat.parseNumber checks endIndex < source.length() before 
matching a special value like (NaN) or (Infinity), so a special-value token 
that runs to the final character of the input is never recognised. This breaks 
the format/parse round trip for a real-only NaN or infinity in ComplexFormat, 
where parse throws MathParseException on the very string format produced. 
Widening the comparison to endIndex <= source.length() lets a special value 
ending the input parse, which also covers RealVectorFormat and RealMatrixFormat 
as they share the same helper.


-- 
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