Skip to content

Webflux handler method does not accept Map as parameter [SPR-16086] #20635

@spring-projects-issues

Description

@spring-projects-issues

Dave Syer opened SPR-16086 and commented

The user guide says that a Map can be used as a handler method param, but it results in an error

Caused by: java.lang.NoSuchMethodException: java.util.Map.<init>()
    at java.lang.Class.getConstructor0(Class.java:3082) ~[na:1.8.0_131]
    at java.lang.Class.getDeclaredConstructor(Class.java:2178) ~[na:1.8.0_131]
    at org.springframework.web.reactive.result.method.annotation.ModelAttributeMethodArgumentResolver.createAttribute(ModelAttributeMethodArgumentResolver.java:210) ~[spring-webflux-5.0.0.RELEASE.jar:5.0.0.RELEASE]

Affects: 5.0 GA

Referenced from: commits 950edf8

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