jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Dürig (JIRA) <j...@apache.org>
Subject [jira] Created: (JCR-2072) RepositoryService.getPropertyInfo called twice for same property
Date Wed, 15 Apr 2009 16:40:15 GMT
RepositoryService.getPropertyInfo called twice for same property

                 Key: JCR-2072
                 URL: https://issues.apache.org/jira/browse/JCR-2072
             Project: Jackrabbit Content Repository
          Issue Type: Improvement
          Components: jackrabbit-jcr2spi
            Reporter: Michael Dürig

The following code 

if (node.hasProperty("jcr:content/jcr:mimeType"))
  Value value = node.getProperty("jcr:content/jcr:mimeType").getValue();

causes two calls to RepositoryService.getPropertyInfo. One for hasProperty() and another one
for getProperty(). The second call is not necessary since the first call should have resolved
that property. 

To fix this o.a.j.jcr2spi.hierarchy.NodeEntryImpl.getDeepPropertyEntry() must consider the
properties of the parent entry even though the parent entry might not yet be complete. 

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message