stoerr opened a new pull request #7:
URL: https://github.com/apache/sling-org-apache-sling-jcr-packageinit/pull/7


   This implements a workaround for 
https://issues.apache.org/jira/browse/JCRVLT-517 : it is possible that the 
FSPackageRegistry didn't initialize it's stateCache and the 
FSPackageRegistry.contains() method, which us used from ExecutionBuilderImpl, 
doesn't initialize it's cache either - thus dependencies of packages aren't 
found and the execution plan fails.
   
   The call to FSPackageRegistry.packages() forces the initialization of the 
stateCache of the registry, and now it works. Thus this can be used with 
Jackrabbit Vault 3.4.10 as well.
   
   The test failed since the FSPackageRegistry didn't have a home directory 
set. I just replaced it with a mock, since, as far as I can tell, none of it's 
funktionality is actually used in the test.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to