Skip to content

Fix default parameters value resolution.#78

Open
iBavtovich wants to merge 1 commit into
jenkinsci:masterfrom
iBavtovich:default-param-resolution-fix
Open

Fix default parameters value resolution.#78
iBavtovich wants to merge 1 commit into
jenkinsci:masterfrom
iBavtovich:default-param-resolution-fix

Conversation

@iBavtovich

Copy link
Copy Markdown

Not all custom parameter definitions can be inherited from StringParameterDefinition, but have default String value.
For example ExtendedChoiceParameter:

https://github.com/jenkinsci/extended-choice-parameter-plugin/blob/master/src/main/java/com/cwctravel/hudson/plugins/extended_choice_parameter/ExtendedChoiceParameterDefinition.java

It cannot inherit from StringParameterDefinition, since the method createValue(StaplerRequest req) is final in SimpleParameterDefinition.class

This commit fix default parameters value resolution and makes it dependent on default ParameterValue instead of ParameterDefinition.

Not all custom parameter definitions can be inherited from StringParameterDefinition, but have default String value. This commit fix it and makes resolution dependent to default ParameterValue instead of ParameterDefinition.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants