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

Docs: Javadoc states that a java.lang.String is required for the value in a write operation, whereas online docs state object

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.1.2
    • Fix Version/s: 1.1.3
    • Component/s: Core
    • Security Level: Public
    • Labels:
      None

      Description

      Java docs here: http://www.couchbase.com/autodocs/couchbase-java-client-1.1.2/

      All set/replace/add/cas operations state something like:
      cas(java.lang.String key, long cas, java.lang.String value, PersistTo req)

      Whereas the docs here: http://www.couchbase.com/docs/couchbase-sdk-java-1.1/api-reference-summary.html

      State that it's an "Object value"

      Looking deeper, it appears that the memcached methods inherited from spy use java.lang.object which leads to user confusion when trying to compare the two.

      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        Hide
        daschl Michael Nitschinger added a comment -

        That's purely a lib bug, since those should also require Object instead of String.

        Show
        daschl Michael Nitschinger added a comment - That's purely a lib bug, since those should also require Object instead of String.
        Hide
        perry Perry Krug added a comment -

        Adding a library component since the Java docs show what the required type is, and if we are limiting to strings, we are preventing people from using these methods with non-string objects without writing their own transcoder which seems a little arduous in the simpler cases.

        Show
        perry Perry Krug added a comment - Adding a library component since the Java docs show what the required type is, and if we are limiting to strings, we are preventing people from using these methods with non-string objects without writing their own transcoder which seems a little arduous in the simpler cases.

          People

          • Assignee:
            daschl Michael Nitschinger
            Reporter:
            perry Perry Krug
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes