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

Romain Manni-Bucau commented on OWB-1199:
-----------------------------------------

pushed a test based on yours but didn't add the beans.xml to not have too much 
side effects if we enrich test set of default behavior (should already be done 
in other modules though for now). Please have a look and shout if it doesn't 
fit your expectations

> CDISeScannerService.autoScanning should be true by default
> ----------------------------------------------------------
>
>                 Key: OWB-1199
>                 URL: https://issues.apache.org/jira/browse/OWB-1199
>             Project: OpenWebBeans
>          Issue Type: Bug
>          Components: Core
>            Reporter: John D. Ament
>             Fix For: 2.0.1
>
>         Attachments: OWB_1199.patch
>
>
> The value of CDISeScannerService.autoScanning should be true by default.  
> There's no setter for this property, and the default value is false in java 
> so... this means this never does scanning.
> Here's a very simple patch to fix
> {code}
> Index: 
> webbeans-se/src/main/java/org/apache/openwebbeans/se/CDISeScannerService.java
> ===================================================================
> --- 
> webbeans-se/src/main/java/org/apache/openwebbeans/se/CDISeScannerService.java 
>     (revision 1801946)
> +++ 
> webbeans-se/src/main/java/org/apache/openwebbeans/se/CDISeScannerService.java 
>     (working copy)
> @@ -44,7 +44,7 @@
>  
>  public class CDISeScannerService extends AbstractMetaDataDiscovery
>  {
> -    private boolean autoScanning;
> +    private boolean autoScanning = true;
>      private final Collection<Class<?>> classes = new ArrayList<>();
>  
>      public OwbAnnotationFinder getFinder()
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to