[ 
https://issues.apache.org/jira/browse/OAK-993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13761788#comment-13761788
 ] 

Michael Dürig commented on OAK-993:
-----------------------------------

For {{Item.refresh}} I'm a bit reluctant to implementing a similar solution. I 
think there is not much to be gained here regarding backwards compatibility. We 
might even be better off with the current behaviour, which is falling back to 
{{Session.refresh}}. WDYT?
                
> Improve backward compatibility for Item.save and Item.refresh
> -------------------------------------------------------------
>
>                 Key: OAK-993
>                 URL: https://issues.apache.org/jira/browse/OAK-993
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: jcr
>            Reporter: Michael Dürig
>
> As described in OAK-132 and OAK-141, both methods are implemented by 
> delegating back to the respective {{Session}} methods and writing a warning 
> to the log. This might introduce difficult to diagnose errors for those 
> clients that rely on being able to only save/refresh parts of the transient 
> space. A better solution might be to detect whether a save/refresh covers all 
> transient changes and only then delegate back to the respective {{Session}} 
> operation but throw an {{UnsupportedRepositoryException}} otherwise. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to