You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Jörg Hoh (JIRA)" <ji...@apache.org> on 2016/10/15 19:12:21 UTC

[jira] [Created] (JCRVLT-133) Avoid node.refresh()

Jörg Hoh created JCRVLT-133:
-------------------------------

             Summary: Avoid node.refresh()
                 Key: JCRVLT-133
                 URL: https://issues.apache.org/jira/browse/JCRVLT-133
             Project: Jackrabbit FileVault
          Issue Type: Improvement
    Affects Versions: 3.1.30
            Reporter: Jörg Hoh
            Priority: Minor


With Oak as JCR implementation I see a lot of warnings like this:

{noformat}
org.apache.jackrabbit.oak.jcr.session.ItemImpl Item#refresh invokes Session#refresh!
{noformat}

To get rid of these we should rather use

{code}
  node.getSession().refresh(...);
{code}
instead of 
{code}
  node.refresh(..);
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)