[
https://issues.apache.org/jira/browse/THRIFT-172?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Piotr Kozikowski updated THRIFT-172:
------------------------------------
Attachment: thrift-172-v3.patch
Nice catch. Actually Integer.toHexString() already does the conversion, but to
four bytes instead of just one, so for instance the value 255 (-1) gets
converted to FFFFFFFF, the value -100 to FFFFFF9C, and so on. All I had to do
was to get rid of the first six characters and just keep the last two.
> Improve printing of "binary"
> ----------------------------
>
> Key: THRIFT-172
> URL: https://issues.apache.org/jira/browse/THRIFT-172
> Project: Thrift
> Issue Type: Improvement
> Components: Compiler (Java)
> Reporter: Nathan Marz
> Assignee: Bryan Duxbury
> Priority: Minor
> Attachments: thrift-172-v2.patch, thrift-172-v3.patch,
> thrift-172.patch
>
>
> RIght now, binary values print as "[EMAIL PROTECTED])", which provides no
> information. It would be better if binary values printed like "'00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 01".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.