[YANGTOOLS-521] Decimal64 does not enforce ranges correctly Created: 04/Oct/15  Updated: 10/Apr/22  Resolved: 10/Nov/15

Status: Resolved
Project: yangtools
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Robert Varga Assignee: Robert Varga
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 4407

 Description   

org.opendaylight.yangtools.yang.model.util.Decimal64 does not take fraction digits into account when constructing the default base range restrictions.

This means that even with fraction digits > 1, the base range restriction remains as if fraction digits were 1. This means we can accept values outside of the representable range, since our internal representation is not capped.



 Comments   
Comment by Robert Varga [ 04/Oct/15 ]

Be: https://git.opendaylight.org/gerrit/27881

Comment by Robert Varga [ 10/Nov/15 ]

Li: https://git.opendaylight.org/gerrit/28180

Generated at Wed Feb 07 20:53:30 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.