commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 28455] New: - Hex converts illegal characters to 255
Date Sun, 18 Apr 2004 18:18:42 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28455>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28455

Hex converts illegal characters to 255

           Summary: Hex converts illegal characters to 255
           Product: Commons
           Version: 1.2 Final
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Codec
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: ggregory@seagullsw.com


List:       jakarta-commons-dev
Subject:    [codec] Proposal for improvement Hex codec
From:       Tom van den Berge <tom.vandenberge () bibit ! com>
Date:       2004-04-15 8:49:31
Message-ID: <407E4C9B.5070701 () bibit ! com>
[Download message RAW]

I'm using the Hex codec to decode e.g. the string "qq". What surprises 
me is that this obviously illegal hex value is decoded into one byte 
value 255. In fact all non-hex 'character-pairs' are decoded to value 255.

Wouldn't it be better to throw a DecoderException if illegal characters 
are passed in?

The current implementation decodes values that is is actually not able 
to decode, which is wrong.

Cheers,
Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message