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

Add method getParameter() to ObjectMessage (and ReusableObjectMessage)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.6, 2.6.1
    • 2.7
    • API
    • 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

              rpopma Remko Popma
              rpopma Remko Popma
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: