[ 
https://issues.apache.org/jira/browse/OLINGO-879?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Bolz resolved OLINGO-879.
---------------------------------
    Resolution: Not A Problem

> Edm.Decimal Literal Validation incorrect
> ----------------------------------------
>
>                 Key: OLINGO-879
>                 URL: https://issues.apache.org/jira/browse/OLINGO-879
>             Project: Olingo
>          Issue Type: Bug
>          Components: odata2-core
>    Affects Versions: V2 1.1.0
>            Reporter: Michael Burwig
>            Assignee: Michael Bolz
>            Priority: Minor
>
> The regex pattern (see below) that is used in {{EdmDecimal.java}} to validate 
> Edm.Decimal literals is not in accordance with:
> http://www.odata.org/documentation/odata-version-2-0/json-format/#PrimitiveTypes
> http://www.odata.org/documentation/odata-version-2-0/overview/#AbstractTypeSystem
> E.g. {{"0.0"}} is wrongfully recognized as a valid Edm.Decimal literal.
> {code:title=EdmDecimal.java|borderStyle=solid}
>   private static final Pattern PATTERN =
>       
> Pattern.compile("(?:\\+|-)?(?:0*(\\p{Digit}+?))(?:\\.(\\p{Digit}+?)0*)?M|m)?");
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to