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

Remi Forax forax at univ-mlv.fr
Mon Oct 28 09:20:50 PDT 2013


On 10/28/2013 04:55 PM, elena votchennikova wrote:
> 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, ???)

yes.

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

yes, that's the idea, someFunction is a black box.

>
>
> Elena

Rémi



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