incubator-clerezza-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tsuyoshi Ito (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (CLEREZZA-358) missing readlock while retrieving baseuris from platform.config
Date Wed, 10 Nov 2010 14:31:13 GMT

     [ 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.


Mime
View raw message