Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve error message in ResolvableType.forClassWithGenerics() #27847

Closed
a-locatelli opened this issue Dec 23, 2021 · 0 comments
Closed

Improve error message in ResolvableType.forClassWithGenerics() #27847

a-locatelli opened this issue Dec 23, 2021 · 0 comments
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Milestone

Comments

@a-locatelli
Copy link

a-locatelli commented Dec 23, 2021

Affects: Spring Framework <= 5.3.14


Class: org.springframework.core.ResolvableType
Method forClassWithGenerics(Class<?> clazz, ResolvableType... generics)

The logging of the following line can be improved by including details of the class that resulted in the error.

Assert.isTrue(variables.length == generics.length, "Mismatched number of generics specified");
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Dec 23, 2021
@sbrannen sbrannen changed the title Improve logging for ResolvableType Improve error message in ResolvableType.forClassWithGenerics() Dec 23, 2021
@sbrannen sbrannen added in: core Issues in core modules (aop, beans, core, context, expression) type: task A general task and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Dec 23, 2021
@sbrannen sbrannen added this to the 6.0.0-M2 milestone Dec 23, 2021
@sbrannen sbrannen self-assigned this Dec 23, 2021
@sbrannen sbrannen added type: enhancement A general enhancement and removed type: task A general task labels Jan 4, 2022
@sbrannen sbrannen modified the milestones: 6.0.0-M2, 5.3.15 Jan 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

3 participants