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

[lworld] toString for primitive class should return `ClassName@hash`

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: repo-valhalla
    • Fix Version/s: repo-valhalla
    • Component/s: core-libs
    • Labels:

      Description

      Object::toString for primitive class should return the traditional `ClassName@hash` not to leak any private and security-sensitive information.

      A primitive class can override `toString` for their custom string representation.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mchung Mandy Chung
              Reporter:
              mchung Mandy Chung
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: