Details
Description
When a value class instance is used with synchronized the MonitorStateException that is thrown should identify the class with a helpful message.
For example,
"Value classes cannot be synchronized: java.util.Optional"
For example,
"Value classes cannot be synchronized: java.util.Optional"
Attachments
Issue Links
- relates to
-
JDK-8287241 Add IdentityException to report that a value object is not valid
- Resolved