You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "John D. Ament (JIRA)" <ji...@apache.org> on 2017/07/14 12:32:00 UTC

[jira] [Created] (OWB-1199) CDISeScannerService.autoScanning should be true by default

John D. Ament created OWB-1199:
----------------------------------

             Summary: 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


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)