missing readlock while retrieving baseuris from platform.config
---------------------------------------------------------------

                 Key: CLEREZZA-358
                 URL: https://issues.apache.org/jira/browse/CLEREZZA-358
             Project: Clerezza
          Issue Type: Bug
            Reporter: Tsuyoshi Ito


readlock should be set

public Set<UriRef> getBaseUris() {

                return AccessController.doPrivileged(new 
PrivilegedAction<Set<UriRef>>() {

                        @Override
                        public Set<UriRef> run() {
                                Iterator<Resource> baseUrisIter = 
getPlatformInstance().
                                                getObjects(PLATFORM.baseUri);
                                Set<UriRef> baseUris = new HashSet<UriRef>();
                                while (baseUrisIter.hasNext()) {
                                        UriRef baseUri = (UriRef) 
baseUrisIter.next();
                                        baseUris.add(baseUri);
                                }
                                baseUris.add(getDefaultBaseUri());
                                return baseUris;
                        }
                });

        }

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

Reply via email to