[JCBC-245] Docs: Javadoc states that a java.lang.String is required for the value in a write operation, whereas online docs state object Created: 12/Feb/13 Updated: 27/Feb/13 Resolved: 27/Feb/13
|Project:||Couchbase Java Client|
|Reporter:||Perry Krug||Assignee:||Michael Nitschinger|
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
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.
|Comment by Perry Krug [ 12/Feb/13 ]|
|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.|
|Comment by Michael Nitschinger [ 19/Feb/13 ]|
|That's purely a lib bug, since those should also require Object instead of String.|