Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-5621

KieComponentFactory should not declare non static logger field

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • 7.42.0.Final
    • None
    • None
    • 2020 Week 34-36 (from Aug 17)
    • NEW
    • NEW

      Description

      The serializable class org.drools.core.reteoo.KieComponentFactory declares a non static logger field (currently unused).

      Logger logger = LoggerFactory.getLogger(KieComponentFactory.class);
      

      When serializing the object this causes problems if the used slf4j logger is not serializable. This will also cause problems if the used logger is not available during deserialization.

      Desired solution

      Either declare the logger field as static or remove it since it is unused.

              mfusco@redhat.com Mario Fusco
              cmartensen Christian Martensen (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: