Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8282106

Valhalla: MonitorStateException should identify the value class

    XMLWordPrintable

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"

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rriggs Roger Riggs
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: