Skip to content

AbstractGenericHttpMessageConverter has no constructor taking a Charset #33563

@OrangeDog

Description

@OrangeDog

AbstractHttpMessageConverter has a constructor (Charset defaultCharset, MediaType... supportedMediaTypes).

AbstractGenericHttpMessageConverter extends it, but provides no access to that constructor.

That forces implementors to call setDefaultCharset in their constructors, which gives a this-escape warning since Java 18 unless they are declared final.

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