Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-3459

Reduce use of class static initialization blocks

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0
    • API, Core
    • None

    Description

      There are numerous classes that use static initializer blocks to perform computation for caching some results. These should all generally be deferred until some other reference to the class such as instantiation of use of a singleton getter method.

      In general, this points to a lack of centralized initialization of the API. This should be addressed through a proper SPI.

      Attachments

        Issue Links

          Activity

            People

              mattsicker Matt Sicker
              mattsicker Matt Sicker
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: