2nd try: http://svn.apache.org/r1583413
Michael On 31 March 2014 17:35, Jukka Zitting <[email protected]> wrote: > Hi, > > On Mon, Mar 31, 2014 at 6:14 AM, <[email protected]> wrote: >> + @Override >> + public String getContentIdentity() { >> + return getBlob().getReference(); >> + } > > This is a bit troublesome, as the getContentIdentity() contract > requires that "Once an identifier is available, it will never change > because values are immutable." The Blob.getReference() method (that's > based on the ReferenceBinary design) does not necessarily return such > a stable identifier (references can expire, etc.). > > If we want to expose a stable content identifier like in > getContentIdentity(), we should extend the Blob interface accordingly > and have the underlying implementation return such a value if > available. > > BR, > > Jukka Zitting
