You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Michael Dürig (JIRA)" <ji...@apache.org> on 2013/11/14 12:27:22 UTC
[jira] [Updated] (OAK-1189) Blob instances do no adhere to contract
[ https://issues.apache.org/jira/browse/OAK-1189?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Dürig updated OAK-1189:
-------------------------------
Attachment: OAK-1189.patch
Proposed patch with changed contract:
{code}
/**
* Returns a new stream for this blob. The streams returned from
* multiple calls to this method are byte wise equals. That is,
* subsequent calls to {@link java.io.InputStream#read() read}
* return the same sequence of bytes as long as neither call throws
* an exception.
*
* @return a new stream for this blob
*/
{code}
> Blob instances do no adhere to contract
> ---------------------------------------
>
> Key: OAK-1189
> URL: https://issues.apache.org/jira/browse/OAK-1189
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: core, mk, mongomk, segmentmk
> Reporter: Michael Dürig
> Priority: Minor
> Fix For: 0.12
>
> Attachments: OAK-1189.patch
>
>
> {{Blob.getNewStream}} mandates the returned streams to be equal. Currently this is not implemented by any of our {{Blob}} implementations.
> However, I think the contract is overly strict. We should probably adapt it to require the returned streams to be "byte wise" equals.
--
This message was sent by Atlassian JIRA
(v6.1#6144)