Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-1471

toString() does not print ByteBuffer values when nested in a List

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: 0.9.3
    • Component/s: Java - Compiler
    • Labels:
      None

      Description

      When a ByteBuffer is directly a field of a struct, the struct's toString uses org.apache.thrift.TBaseHelper.toString to print the ByteBuffer's bytes. However, if the struct instead has a List<ByteBuffer> (probably any other non-thrift Collection type, but haven't tested others), it instead uses ByteBuffer's default toString: [java.nio.HeapByteBuffer[pos=0 lim=16 cap=16]]. The toString on a collection should ideally print out the bytes instead.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                bpodgursky Ben Podgursky
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: