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

LookupInResult.contentAs() throws PathNotFound for exists result

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • None
    • None
    • None
    • 0

    Description

      Suggested release note:

      The preferred way to get the result of an `exists` sub-document lookup is to call `LookupInResult.exists(index)`. However, it's also possible to get the result using `LookupInResult.contentAs(index, Boolean.class)`. Previously, `contentAs(index, Boolean.class)` was throwing `PathNotFoundException` for negative `exists` results instead of returning false. Now it returns false as you might expect.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty