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

Concrete Filter implementations should override equals and hashCode

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Filters
    • None

    Description

      For CompositeFilter.remove(Filter) to work correctly, concrete Filter implementations should override equals and hashCode.

      This is because CompositeFilter uses List.remove(Object), comparing by equality. Applications that keep a reference to the Filter object that was registered will work, but for example registering and unregistering serialized and deserialized instances via JMX will not work without this.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: