timja / jenkins-gh-issues-poc-06-18

0 stars 0 forks source link

[JENKINS-32503] allow non-void DataBoundSetter #7781

Open timja opened 8 years ago

timja commented 8 years ago

Such feature would allow to have fluent code in tests or programmatic jenkins configuration. http://kostyasha.blogspot.com.by/2015/12/jenkins-fluent-classes.html

Atm it not possible to have non-void setters because RequestImpl.class uses java.beans.PropertyDescriptor#getWriteMethod that follows java bean specification that say that setter should be void.

PS. Spring AFAIK allows having non-void setters.


Originally reported by integer, imported from: allow non-void DataBoundSetter
  • status: Open
  • priority: Minor
  • resolution: Unresolved
  • imported: 2022/01/10
timja commented 7 years ago

integer:

Found that https://commons.apache.org/proper/commons-beanutils/apidocs/org/apache/commons/beanutils/package-summary.html#standard.customize
allow customize it, https://commons.apache.org/proper/commons-beanutils/apidocs/org/apache/commons/beanutils/FluentPropertyBeanIntrospector.html appeared since 1.9
And as i see it stapler library question...

timja commented 7 years ago

integer:

https://github.com/stapler/stapler/pull/81
https://github.com/jenkinsci/jenkins/pull/2588

timja commented 7 years ago

integer:

locally stapler test fails, so something changed and needs investigation.