You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Victor Hu (Jira)" <ji...@apache.org> on 2022/05/05 23:09:00 UTC
[jira] [Commented] (OLINGO-1549) cannot create amount smaller than 0.10
[ https://issues.apache.org/jira/browse/OLINGO-1549?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17532553#comment-17532553 ]
Victor Hu commented on OLINGO-1549:
-----------------------------------
I refiled this Question as a Bug in OLINGO-1568.
> cannot create amount smaller than 0.10
> --------------------------------------
>
> Key: OLINGO-1549
> URL: https://issues.apache.org/jira/browse/OLINGO-1549
> Project: Olingo
> Issue Type: Question
> Components: odata4-client
> Affects Versions: (Java) V4 4.8.0
> Reporter: wim wintmolders
> Priority: Major
>
> The following throws an exceptionÂ
> {code:java}
> new ClientObjectFactoryImpl().newPrimitiveValueBuilder().buildDecimal(new BigDecimal("0.04")).toString();
> {code}
> {noformat}
> java.lang.IllegalArgumentException: org.apache.olingo.commons.api.edm.EdmPrimitiveTypeException: The value '0.04' does not match the facets' constraints.
> {noformat}
> Not sure if I'm doing anything wrong, but any number above 0.09 does work.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)