You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Fred Dushin (JIRA)" <ji...@apache.org> on 2007/03/21 20:24:32 UTC

[jira] Created: (CXF-480) Interceptor lists should use thread-safe list impls

Interceptor lists should use thread-safe list impls
---------------------------------------------------

                 Key: CXF-480
                 URL: https://issues.apache.org/jira/browse/CXF-480
             Project: CXF
          Issue Type: Bug
          Components: Core
    Affects Versions: 2.0-M1
            Reporter: Fred Dushin
             Fix For: 2.0-RC


The InterceptorProvider interface is essentially implemented by 2 classes in CXF: AbstractAttributedInterceptorProvider and AbstractBasicIntercetptorProvider.  The interceptor lists stored in these base types are implemented as ArrayLists.  However, ArrayLists are not thread-safe, so traversal of said interceptor lists is sensitive to underlying modifications by other interceptors or threads.  These maps should be implemented by the java.util.concurrent.CopyOnWriteArrayList type.

Tested patch to follow.

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


[jira] Closed: (CXF-480) Interceptor lists should use thread-safe list impls

Posted by "Dan Diephouse (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-480?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Diephouse closed CXF-480.
-----------------------------

    Resolution: Fixed

> Interceptor lists should use thread-safe list impls
> ---------------------------------------------------
>
>                 Key: CXF-480
>                 URL: https://issues.apache.org/jira/browse/CXF-480
>             Project: CXF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0-M1
>            Reporter: Fred Dushin
>         Assigned To: Daniel Kulp
>             Fix For: 2.0-RC
>
>         Attachments: cxf-480.patch, cxf-480.patch
>
>
> The InterceptorProvider interface is essentially implemented by 2 classes in CXF: AbstractAttributedInterceptorProvider and AbstractBasicIntercetptorProvider.  The interceptor lists stored in these base types are implemented as ArrayLists.  However, ArrayLists are not thread-safe, so traversal of said interceptor lists is sensitive to underlying modifications by other interceptors or threads.  These maps should be implemented by the java.util.concurrent.CopyOnWriteArrayList type.
> Tested patch to follow.

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


[jira] Updated: (CXF-480) Interceptor lists should use thread-safe list impls

Posted by "Fred Dushin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-480?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Fred Dushin updated CXF-480:
----------------------------

    Attachment: cxf-480.patch

Forgot to grant ASF license -- and I can't seem to modify or remove the previous one.

> Interceptor lists should use thread-safe list impls
> ---------------------------------------------------
>
>                 Key: CXF-480
>                 URL: https://issues.apache.org/jira/browse/CXF-480
>             Project: CXF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0-M1
>            Reporter: Fred Dushin
>             Fix For: 2.0-RC
>
>         Attachments: cxf-480.patch, cxf-480.patch
>
>
> The InterceptorProvider interface is essentially implemented by 2 classes in CXF: AbstractAttributedInterceptorProvider and AbstractBasicIntercetptorProvider.  The interceptor lists stored in these base types are implemented as ArrayLists.  However, ArrayLists are not thread-safe, so traversal of said interceptor lists is sensitive to underlying modifications by other interceptors or threads.  These maps should be implemented by the java.util.concurrent.CopyOnWriteArrayList type.
> Tested patch to follow.

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


[jira] Updated: (CXF-480) Interceptor lists should use thread-safe list impls

Posted by "Fred Dushin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-480?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Fred Dushin updated CXF-480:
----------------------------

    Attachment: cxf-480.patch

Patch file off revision 520981

> Interceptor lists should use thread-safe list impls
> ---------------------------------------------------
>
>                 Key: CXF-480
>                 URL: https://issues.apache.org/jira/browse/CXF-480
>             Project: CXF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0-M1
>            Reporter: Fred Dushin
>             Fix For: 2.0-RC
>
>         Attachments: cxf-480.patch
>
>
> The InterceptorProvider interface is essentially implemented by 2 classes in CXF: AbstractAttributedInterceptorProvider and AbstractBasicIntercetptorProvider.  The interceptor lists stored in these base types are implemented as ArrayLists.  However, ArrayLists are not thread-safe, so traversal of said interceptor lists is sensitive to underlying modifications by other interceptors or threads.  These maps should be implemented by the java.util.concurrent.CopyOnWriteArrayList type.
> Tested patch to follow.

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


[jira] Assigned: (CXF-480) Interceptor lists should use thread-safe list impls

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-480?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp reassigned CXF-480:
-------------------------------

    Assignee: Daniel Kulp

> Interceptor lists should use thread-safe list impls
> ---------------------------------------------------
>
>                 Key: CXF-480
>                 URL: https://issues.apache.org/jira/browse/CXF-480
>             Project: CXF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0-M1
>            Reporter: Fred Dushin
>         Assigned To: Daniel Kulp
>             Fix For: 2.0-RC
>
>         Attachments: cxf-480.patch, cxf-480.patch
>
>
> The InterceptorProvider interface is essentially implemented by 2 classes in CXF: AbstractAttributedInterceptorProvider and AbstractBasicIntercetptorProvider.  The interceptor lists stored in these base types are implemented as ArrayLists.  However, ArrayLists are not thread-safe, so traversal of said interceptor lists is sensitive to underlying modifications by other interceptors or threads.  These maps should be implemented by the java.util.concurrent.CopyOnWriteArrayList type.
> Tested patch to follow.

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