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

Add method getParameter() to ObjectMessage (and ReusableObjectMessage)

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6, 2.6.1
    • Fix Version/s: 2.7
    • Component/s: API
    • Labels:
      None

      Description

      While analysing LOG4J2-1397 I found it is currently not possible for client code to get a reference to the Object in the ObjectMessage without creating a temporary (single-element) array (returned from getParameters().

      This ticket proposes to add a method to the ObjectMessage and ReusableObjectMessage interface that gives direct access to the object parameter.

      I'm flexible with regards to the name of this new method. I thought of getParameter() but an alternative could be getObject() or something else.

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              rpopma Remko Popma
              Reporter:
              rpopma Remko Popma

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment