]
Mario Fusco resolved DROOLS-5621.
---------------------------------
Resolution: Done
Fixed by
KieComponentFactory should not declare non static logger field
--------------------------------------------------------------
Key: DROOLS-5621
URL:
https://issues.redhat.com/browse/DROOLS-5621
Project: Drools
Issue Type: Bug
Affects Versions: 7.42.0.Final
Reporter: Christian Martensen
Assignee: Mario Fusco
Priority: Major
h3. Description
The serializable class org.drools.core.reteoo.KieComponentFactory declares a non static
logger field (currently unused).
{code:java}
Logger logger = LoggerFactory.getLogger(KieComponentFactory.class);
{code}
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.
h3. Desired solution
Either declare the logger field as static or remove it since it is unused.