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
- is duplicated by
-
JVMCBC-1179 LookupInResult.contentAs(i, Boolean.class) throws PathNotFound for `exists` spec
- Closed