Skip to content

Use canonical type names in conversion logging and error messages #4806

@sbrannen

Description

@sbrannen

Reading the error message in #4801 made me realize that we should actually log/report canonical type names instead of binary type names.

org.junit.jupiter.api.extension.ParameterResolutionException: Error converting parameter at index 0: MyConverter cannot convert objects of type [[B]. Only source objects of type [java.lang.String] are supported.

For example, instead of reporting the type as [B, we should report the type as byte[].

We should likely apply this change in ParameterResolutionUtils and TypedArgumentConverter; however, we may find that we need to apply this in other areas as well.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions