JDK-6909057 : @see Arrays#hashCode missing particular method specification in j.u.Objects.hash
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util
  • Affected Version: 7
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2009-12-10
  • Updated: 2010-04-02
  • Resolved: 2010-01-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7 b79Fixed
Related Reports
Relates :  
Description
As observed by the JCK team, the javadoc for the method java.util.Object.hash has an misleading link to the hashCode method for Arrays.hashCode(long[]) rather than Arrays.hashCode(Object[]) as discussed in the method's javadoc.  This occur because the @see text does not reference a particular hashCode method; the more specific reference should be added.

Comments
SUGGESTED FIX # HG changeset patch # User darcy # Date 1260410148 28800 # Node ID c2f83e13bbe5cf795edf41dde3195377790e684b # Parent db5c77621c6bd6ed4d6b29f11291954a89dceac2 6909057: @see Arrays#hashCode missing particular method specification in j.u.Objects.hash Reviewed-by: ksrini --- a/src/share/classes/java/util/Objects.java Wed Dec 09 11:15:25 2009 +0800 +++ b/src/share/classes/java/util/Objects.java Wed Dec 09 17:55:48 2009 -0800 @@ -119,7 +119,7 @@ public final class Objects { * * @param values the values to be hashed * @return a hash value of the sequence of input values - * @see Arrays#hashCode + * @see Arrays#hashCode(Object[]) * @see List#hashCode */ public static int hash(Object... values) {
10-12-2009

EVALUATION A fine idea.
10-12-2009

PUBLIC COMMENTS See http://hg.openjdk.java.net/jdk7/tl/jdk/rev/c2f83e13bbe5
10-12-2009