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

Add quality of implementation discussion to Object.{equals, toString, hashCode}

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Unresolved
    • Icon: P4 P4
    • 25
    • core-libs
    • None
    • minimal
    • Java API
    • SE

      Summary

      This CSR will be updated once the intended API updates are closer to being final.

      Problem

      The overridable methods of java.lang.Object can be called on any object, including objects the caller has not particular knowledge of. As such, basic information methods like toString and hashCode should be well-behaved, such as running in a reasonable amount of time and space, etc.

      Solution

      An overview of the solution. Alternative solutions may be discussed; links to rationale documents or review threads welcome to provide additional background to reviewers.

      Specification

      The detailed changes. Acceptable normative formats include inline patches, attached webrevs, and attached specdiffs. The names of attached files are recommended to include a bug id. References to external webservers, such as http://cr.openjdk.java.net/, can be provided as informative supplements for the convenience of reviewers, but must be accompanied by a normative form of the specification directly associated with the CSR issue to satisfy archival purposes.

            darcy Joe Darcy
            darcy Joe Darcy
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: