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

[lworld] Make primitive wrappers be value class if preview feature is enabled

XMLWordPrintable

      As specified in JEP 401, when preview features are enabled, the following standard library classes are considered to be value classes, despite not having been declared or compiled with the value modifier:

          java.lang.Byte
          java.lang.Short
          java.lang.Integer
          java.lang.Long
          java.lang.Float
          java.lang.Double
          java.lang.Boolean
          java.lang.Character
          java.util.Optional
          java.lang.Number
          java.lang.Record

            mchung Mandy Chung
            mchung Mandy Chung
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: