Hi
As far as I know the byte[] super class is Object and it seems that
they do not overwrite the standard equals() method (as they also do
for the toString()).
I also checked Byte[] because its superclass is Object[] but it is
the same.
I think their is no way to go around except to write a wrapper class
around byte[], eh?
Have fun
Mad Andy
> -----Original Message-----
> From: marc fleury [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 10, 2000 4:50 PM
> To: jBoss Developer
> Subject: [jBoss-Dev] [newbie] byte[].hashcode()
>
>
> did you know that
>
> byte[] byte1 = {1,2,3};
> byte[] byte2 = {1,2,3};
>
> yields
> byte1.equals(byte2) = false;
> and
> byte1.hashCode() != byte2.hashCode();
>
> blows my mind man....
>
> what is the best way to compute a byte[].hashCode()?
>
> regards
>
> marc
>
> sorry for the newbie question :))))
>
> ________________________
> Marc Fleury
> Chief Technology Officer
> Telkel, Inc.
> ________________________
>