[
https://issues.apache.org/jira/browse/BEANUTILS-521?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16958901#comment-16958901
]
Melloware commented on BEANUTILS-521:
-------------------------------------
You are right when the Converter.convert method switched to generics <T> this
is no longer allowed in Lambas.
{code:java}
/**
* Convert the specified input object into an output object of the
* specified type.
*
* @param <T> the desired result type
* @param type Data type to which this value should be converted
* @param value The input value to be converted
* @return The converted value
*
* @throws ConversionException if conversion cannot be performed
* successfully
*/
public <T> T convert(Class<T> type, Object value);
{code}
> ConvertUtilsBean register no longer accepts a lambda
> ----------------------------------------------------
>
> Key: BEANUTILS-521
> URL: https://issues.apache.org/jira/browse/BEANUTILS-521
> Project: Commons BeanUtils
> Issue Type: Bug
> Components: ConvertUtils & Converters
> Affects Versions: 1.9.0, 1.9.1, 1.9.2, 1.9.3
> Environment: Jenkins 2.173+
> commons-beanutils 1.9.3
> Reporter: Joseph Petersen
> Priority: Blocker
>
> [https://github.com/jenkinsci/configuration-as-code-plugin/pull/850/files#diff-7b37b740fa524c001a6701ca3800668aR130]
> [https://github.com/jenkinsci/jenkins/pull/3948#issuecomment-494196433]
> {noformat}
> src/main/java/io/jenkins/plugins/casc/ConfigurationContext.java:[129,40]
> incompatible types: invalid functional descriptor for lambda expression
> method <T>(java.lang.Class<T>,java.lang.Object)T in interface
> org.apache.commons.beanutils.Converter is generic
> {noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)