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

Wasted work in XMLLayout.toSerializable()

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.0-beta6
    • 2.0-beta8
    • Layouts
    • any

    Description

      The problem appears in Log4j 2.0-beta6 and in revision 1490297. I
      attached a one-line patch that fixes it.

      In method "XMLLayout.toSerializable", the loop over
      "formats" should break immediately after
      "xmlSupported" is set to "true". All the iterations after
      "xmlSupported" is set to "true" do not perform any useful work,
      at best they just set "xmlSupported" again to "true".

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            ggregory Gary D. Gregory
            adriannistor Adrian Nistor
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment