Skip to content

Clarify behavior for generics support in BeanUtils.copyProperties #27259

@afattahi54

Description

@afattahi54

The below code works in 5.2.9.RELEASE

BeanUtils.copyProperties(transferVO , transferRequest);

The classes where as follow. As you can see the source and destination beans has a List with same name but different types. But it was working

public class transferVO {
	private List<Signer> signers;
}

public class transferRequest{	
	private List<TransferSigners > signers;

}


public class Signer{
    private string name;

}

public class TransferSigners {    
    private string name;
}

After upgrade to 5.3.7 the signers property is not copied.

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: documentationA documentation task

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions