You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Dave Thompson (Jira)" <ji...@apache.org> on 2023/09/29 12:28:00 UTC

[jira] [Closed] (DAFFODIL-2834) Fix NumberformatException message in hexCharToValue

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

Dave Thompson closed DAFFODIL-2834.
-----------------------------------

Verified the specified commit (commit 4d5f2738399470cd0ec25f3b76fe1b7ccfcb090b) is included in the latest pull from the daffodil repository.

Verified the specified test is correted and executes successfully.

> Fix NumberformatException message in hexCharToValue
> ---------------------------------------------------
>
>                 Key: DAFFODIL-2834
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2834
>             Project: Daffodil
>          Issue Type: Bug
>          Components: General
>    Affects Versions: 3.5.0
>            Reporter: Peter Katlic
>            Assignee: Peter Katlic
>            Priority: Trivial
>             Fix For: 3.5.1
>
>
> The Misc.hex2Bytes function makes use of the hexCharToValue function, which limits character values to the numbers 0-9, capital A-F, and lowercase a-f. However, the NumberFormatException thrown for values outside of this range has the message "Hex character must be 0-9, a-z, or A-Z, but was ". This should be "Hex character must be 0-9, a-f, or A-F, but was ".



--
This message was sent by Atlassian Jira
(v8.20.10#820010)