Brian Stansberry created WFCORE-1173:
----------------------------------------
Summary: Incorrect null check in
SimpleResourceDefinition.Parameter.setDeprecatedSince
Key: WFCORE-1173
URL:
https://issues.jboss.org/browse/WFCORE-1173
Project: WildFly Core
Issue Type: Bug
Components: Domain Management
Affects Versions: 2.0.3.Final
Reporter: Brian Stansberry
Assignee: Brian Stansberry
Fix For: 2.0.4.Final
The null check checks the field being assigned instead of the param passed in:
{code}
public Parameters setDeprecatedSince(ModelVersion deprecatedSince) {
if (deprecationData == null) { // <-- OOPS!
throw ControllerLogger.ROOT_LOGGER.nullVar("deprecatedSince");
}
this.deprecationData = new DeprecationData(deprecatedSince);
{code}
The field will always be null, making this method useless.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)