[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 |
||
| 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 ] |
| Comment by Robert Varga [ 10/Nov/15 ] |