RFR: 7057785 : (xs) Add note to hashCode() that support for self referential is optional
guy.steele at oracle.com
Wed Aug 28 22:47:27 UTC 2013
On Aug 28, 2013, at 6:13 PM, Mike Duigou <mike.duigou at oracle.com> wrote:
> On Aug 28 2013, at 11:48 , Martin Buchholz wrote:
>> This isn't just about hashCode - I'm not sure why you are singling it out. What about toString?
> A reasonable point. The bug reports are just about as common for toString() being "broken" for self-referential collections.
*ahem* Y'know, Common Lisp had a good solution for printing self-referential structures (by a user-extensible print function) back in 1984.
It leaned on the solution that had been provided in Interlisp in 1974. On a machine with one megabyte of main memory and a speed of 1 MIPS.
This is not rocket science.
More information about the core-libs-dev