[ 
https://issues.apache.org/jira/browse/JSPWIKI-1357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alex O'Ree updated JSPWIKI-1357:
--------------------------------
    Description: 
see detailed PR here, which is copied below

https://github.com/apache/jspwiki/pull/234

Replaces java.util.Vector with ArrayList or a concurrent collection, depending 
on how each list is accessed. Lists that are iterated while other threads 
modify them (ACL entries, ACL entry permissions, group members and the 
SpamFilter ban list) use CopyOnWriteArrayList. Lists that are only touched 
while holding their owner's lock (the WikiEventManager preload cache and the 
SpamFilter modification list) use a plain ArrayList. The jspwiki-xmlrpc module 
is left unchanged, because the XML-RPC library it uses requires Vector. The 
jspwiki-main tests pass. There is no new test for the concurrent access.

  was:see detailed PR here, which is copied below


> Replace usages of Vector with List/ArrayList and concurrent collections
> -----------------------------------------------------------------------
>
>                 Key: JSPWIKI-1357
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-1357
>             Project: JSPWiki
>          Issue Type: Improvement
>            Reporter: Alex O'Ree
>            Priority: Major
>             Fix For: 3.0.1
>
>
> see detailed PR here, which is copied below
> https://github.com/apache/jspwiki/pull/234
> Replaces java.util.Vector with ArrayList or a concurrent collection, 
> depending on how each list is accessed. Lists that are iterated while other 
> threads modify them (ACL entries, ACL entry permissions, group members and 
> the SpamFilter ban list) use CopyOnWriteArrayList. Lists that are only 
> touched while holding their owner's lock (the WikiEventManager preload cache 
> and the SpamFilter modification list) use a plain ArrayList. The 
> jspwiki-xmlrpc module is left unchanged, because the XML-RPC library it uses 
> requires Vector. The jspwiki-main tests pass. There is no new test for the 
> concurrent access.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to