NumberPathExpressionProviderImpl cannot parse doubles
In NumberPathExpressionProviderImpl Apache lang3 StringUtils.isNumeric(xxx) is used to check if the string is a valid integer, this will not work if it is a double.
Later on in the various functions (eq, ne, gt, lt etc) Apache lang3 math NumberUtils.createNumber(xxx) is used to create a number from that string.
If we use NumberUtils.isCreatable(xxx) instead of StringUtils.isNumeric(xxx) to validate the String then doubles and integers work out of the box.
I've had to recreate the package structure in my project in order to subclass NumberPathExpressionProviderImpl and make this change as NumberPathExpressionProviderImpl has package visibility.
Comments (3)
-
-
repo owner will be looked at now. Sorry, I had been away from this framework for a while. Picking it back up again.
-
repo owner - changed status to open
- Log in to comment
Please let me know if you need any more information (ticket creator)