Uploaded image for project: 'OpenWebBeans'
  1. OpenWebBeans
  2. OWB-1199

CDISeScannerService.autoScanning should be true by default

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.1
    • Component/s: Core
    • Labels:
      None

      Description

      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

      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()
      

        Attachments

        1. OWB_1199.patch
          3 kB
          John D. Ament

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              johndament John D. Ament
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: