You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@clerezza.apache.org by "Tsuyoshi Ito (JIRA)" <ji...@apache.org> on 2010/11/10 15:31:13 UTC
[jira] Resolved: (CLEREZZA-358) missing readlock while retrieving
baseuris from platform.config
[ https://issues.apache.org/jira/browse/CLEREZZA-358?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tsuyoshi Ito resolved CLEREZZA-358.
-----------------------------------
Resolution: Fixed
Assignee: Tsuyoshi Ito
> 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
> Assignee: 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.