Skip to content

Document need for -parameters flag in exception messages #31675

Closed
@sbrannen

Description

@sbrannen

Overview

Since -parameters is required for certain use cases starting with Spring Framework 6.1, we should revise related exception messages to explicitly mention the solution.

For example, a Spring MVC @Controller handler method with a @PathVariable String client parameter declaration may fail with an exception similar to the following.

java.lang.IllegalArgumentException: Name for argument of type [java.lang.String] not specified, and parameter name information not found in class file either.

To improve diagnostics, we should add something along the lines of Ensure that the compiler uses the -parameters flag. to the end of that exception message.

Related Issues

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions