Uploaded image for project: 'Jackrabbit FileVault'
  1. Jackrabbit FileVault
  2. JCRVLT-133

Avoid node.refresh()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.1.30
    • 3.1.38
    • None
    • None

    Description

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

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

      To get rid of these we should rather use

        node.getSession().refresh(...);
      

      instead of

        node.refresh(..);
      

      Attachments

        1. JCRVLT-133.patch
          2 kB
          Joerg Hoh

        Activity

          People

            tripod Tobias Bocanegra
            joerghoh Joerg Hoh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: