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

Make Boolean, Character, Byte, and Short implement Constable

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 15
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b22

      Description

      In the first round of making things Constable only the box types whose primitive had a native constant pool representation were made to implement Constable (Integer, Long, Float, and Double).

      Let's add support for the other wrapper types as well.

      This is for instance useful for APIs that take a Constable as input type, and want to supply for instance a boolean as an argument, without having to fall back to parsing "true" and "false" strings.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jvernee Jorn Vernee
              Reporter:
              jvernee Jorn Vernee
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: