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

SystemPropertyArbiter variable assignment error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.19.0
    • Core
    • None

    Description

       

      // org.apache.logging.log4j.core.config.arbiters.SystemPropertyArbiter
      public static final String ATTR_PROPERTY_NAME = "propertyName";
      public static final String ATTR_PROPERTY_VALUE = "propertyValue";
      
      @PluginBuilderAttribute(ATTR_PROPERTY_NAME)
      private String propertyName;
      
      @PluginBuilderAttribute(ATTR_PROPERTY_VALUE)
      private String propertyValue;
      /**
       * Sets the Property Name.
       * @param propertyName the property name.
       * @return this
       */
      public Builder setPropertyName(final String propertyName) {
          this.propertyName = propertyName;
          return asBuilder();
      }
      
      /**
       * Sets the Property Value.
       * @param propertyValue the property name.
       * @return this
       */
      public Builder setPropertyValue(final String propertyValue) {
          this.propertyName = propertyValue;
          return asBuilder();
      } 

       

       

      It looks like this variable was incorrectly assigned.

      I submitted pull request on Github: https://github.com/apache/logging-log4j2/pull/955

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            MurphyPen DongjianPeng
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: