j.l.r.Parameter.hashCode() question

elena votchennikova elena.votchennikova at oracle.com
Mon Oct 28 08:55:20 PDT 2013


Hello Joe,

On 25.10.2013 21:11, Joe Darcy wrote:
>
>>
>>>> On 04.10.2013 5:03, Joseph Darcy wrote:
>>>>> The phrased "based on" means "some unspecified function of."
>>>>
>>>
>>
> I don't really see how the equals contract saying "Compares based on 
> the executable and the index" could lead a reasonable programmer to 
> code up something that was not equivalent to 
> "other.executable.equals(executable) && other.index == index".
>

"Compares based on the executable and the index" means
someFunction(Executable executable, int index, ???)

I cannot say nothing about the implementation of this "someFunction".


Elena


More information about the enhanced-metadata-spec-discuss mailing list