Check why we try to create metadata for Object[] in case of parameter validation and for <return type> in case of return value validation

Description

If you throw an error directly from PredefinedScopeBeanMetaDataManager such as:

you end up with the following error:

This does not sound like something we should do. I mean what would be the bean metadata for Object[]? And if the return value is not marked with @Valid, we can consider it's not a bean.

Environment

None

Status

Assignee

Unassigned

Reporter

Guillaume Smet

Labels

None

Worked in

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Community Help Wanted

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Priority

Major
Configure