Uploaded image for project: 'Couchbase Java Client'
  1. Couchbase Java Client
  2. JCBC-1786

Transcoders should allow contentAs(Object.class)

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 3.1.4
    • None
    • None
    • None
    • 1

    Description

      Expected result from contentAs(Object.class) is a Java primitive / Map / List.

      Actual results is the transcoder gets confused and throws "byte[] input is not supported for the JsonTranscoder!"

      Instead of checking for

          target.isAssignableFrom(byte[].class)

      a better check would be

          target.equals(byte[].class)

      Attachments

        Activity

          People

            david.nault David Nault
            david.nault David Nault
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty