You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Ralph Goers (Jira)" <ji...@apache.org> on 2022/07/12 16:13:00 UTC

[jira] [Commented] (LOG4J2-3550) SystemPropertyArbiter variable assignment error

    [ https://issues.apache.org/jira/browse/LOG4J2-3550?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17565912#comment-17565912 ] 

Ralph Goers commented on LOG4J2-3550:
-------------------------------------

The PR was merged. Thanks for the Fix!

> 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
>            Priority: Minor
>
>  
> {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)