MimeType is no longer actually serializable #26127
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: backported
An issue that has been backported to maintenance branches
type: regression
A bug that is also a regression
Milestone
Affects: 5.2.10 and up
The org.springframework.util.MimeType class implements Serializable interface, but since the resolvedCharset field was introduced in 5.2.10, serialization with charset will fail since Charset class does not implement Serializable.
Code to reproduce:
On OpenJDK 8 & 11 (Ubuntu), the above gives java.io.NotSerializableException.
The text was updated successfully, but these errors were encountered: