You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "DongjianPeng (Jira)" <ji...@apache.org> on 2022/07/12 02:30:00 UTC
[jira] [Created] (LOG4J2-3550) SystemPropertyArbiter variable assignment error
DongjianPeng created LOG4J2-3550:
------------------------------------
Summary: SystemPropertyArbiter variable assignment error
Key: LOG4J2-3550
URL: https://issues.apache.org/jira/browse/LOG4J2-3550
Project: Log4j 2
Issue Type: Bug
Components: Core
Reporter: DongjianPeng
{code:java}
// 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();
} {code}
It looks like this variable was incorrectly assigned.
I submitted pull request on Github: https://github.com/apache/logging-log4j2/pull/955
--
This message was sent by Atlassian Jira
(v8.20.10#820010)