[logback-dev] [JIRA] Updates for LOGBACK-1583: @NoAutoStart ignored on interfaces and parent classes

QOS.CH (JIRA) noreply-jira at qos.ch
Wed Oct 13 16:23:00 CEST 2021


logback / LOGBACK-1583 [Open]
@NoAutoStart ignored on interfaces and parent classes

==============================

Here's what changed in this issue in the last few minutes.
This issue has been created
This issue is now assigned to you.

View or comment on issue using this link
https://jira.qos.ch/browse/LOGBACK-1583

==============================
 Issue created
------------------------------

Bertrand Renuart created this issue on 13/Oct/21 4:10 PM
Summary:              @NoAutoStart ignored on interfaces and parent classes
Issue Type:           Bug
Affects Versions:     1.2.6
Assignee:             Logback dev list
Components:           Joran
Created:              13/Oct/21 4:10 PM
Environment:
  The {{@NoAutoStart}} annotation can be used to tell Joran not to start the component event it implements the {{Lifecycle}} interface.
  
  Unfortunately, the annotation seems to be ignored when not set directly on the component class but on an interface or a base/parent class of the hierarchy.
  
  After digging into the source code, it looks like the [(NoAutoStart#notMarkedWithNoAutoStart()|https://github.com/qos-ch/logback/blob/v_1.2.6/logback-core/src/main/java/ch/qos/logback/core/joran/spi/NoAutoStartUtil.java#L25]) method could be enhanced to look for the annotation in the hierarchy and implement interfaces in addition the the class itself.
Priority:             Major
Reporter:             Bertrand Renuart


==============================
 This message was sent by Atlassian Jira (v8.8.0#808000-sha1:e2c7e59)



More information about the logback-dev mailing list