You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tibor Digana (JIRA)" <ji...@apache.org> on 2016/04/27 00:00:14 UTC

[jira] [Commented] (SUREFIRE-1242) Surefire should honour @javax.annotation.concurrent.NotThreadSafe as well

    [ https://issues.apache.org/jira/browse/SUREFIRE-1242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15259022#comment-15259022 ] 

Tibor Digana commented on SUREFIRE-1242:
----------------------------------------

Sorry but this can't be used, however I was thinking of it when I designed this feature, because of the retention type
{code}
@Documented
@Target(value=TYPE)
@Retention(value=CLASS)
public @interface NotThreadSafe
{code}

> Surefire should honour @javax.annotation.concurrent.NotThreadSafe as well
> -------------------------------------------------------------------------
>
>                 Key: SUREFIRE-1242
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1242
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Junit 4.7+ (parallel) support
>    Affects Versions: 2.19.1
>            Reporter: Frank Jakop
>
> In SUREFIRE-1093 the single-threaded execution of {{net.jcip.annotations.NotThreadSafe}} annotated test classes was introduced.
> This annotation is also present as {{javax.annotation.concurrent.NotThreadSafe}} in the widely used JSR-305-library _com.google.code.findbugs:jsr305_. 
> Surefire should respect this annotation also, as the danger of mis-importing the annotations leads to confusion.
> (if this is a desired feature, I will provide a PR)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)