You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Martin Tzvetanov Grigorov (Jira)" <ji...@apache.org> on 2022/01/24 08:53:00 UTC

[jira] [Resolved] (AVRO-3314) ArgumentOutOfRangeException thrown in AvroDecimal IConvertable.ToType

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

Martin Tzvetanov Grigorov resolved AVRO-3314.
---------------------------------------------
    Fix Version/s: 1.11.1
                   1.12.0
         Assignee: Martin Tzvetanov Grigorov
       Resolution: Fixed

> ArgumentOutOfRangeException thrown in AvroDecimal IConvertable.ToType
> ---------------------------------------------------------------------
>
>                 Key: AVRO-3314
>                 URL: https://issues.apache.org/jira/browse/AVRO-3314
>             Project: Apache Avro
>          Issue Type: Improvement
>          Components: csharp
>    Affects Versions: 1.11.0
>            Reporter: Kyle Schoonover
>            Assignee: Martin Tzvetanov Grigorov
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.11.1, 1.12.0
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> IConvertable.ToType is throwing an ArgumentOutOfRangeException, which is not the correct exception to throw since the arguments being passed are not what can cause the exception.  This should be changed to an ArithmeticException, specifically an OverflowException.
> For reference: [ArithmeticException Class (System) | Microsoft Docs|https://docs.microsoft.com/en-us/dotnet/api/system.arithmeticexception?view=net-6.0]



--
This message was sent by Atlassian Jira
(v8.20.1#820001)