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

Compile-time incompatibility regarding SimpleMessage

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.6
    • None
    • API
    • None

    Description

      Commit 85a46bbe changed SimpleMessage and ReusableSimpleMessage in such a way that previously valid code turned invalid because of ambiguous method calls.

      // previously valid
      logger.debug(new SimpleMessage("simple message"));
      // now only valid with cast
      logger.debug((Message)new SimpleMessage("simple message"));
      

      Just wanted to holler to make sure you are aware of this issue.

      Attachments

        Activity

          People

            Unassigned Unassigned
            huxi Joern Huxhorn
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: