Tom Tromey wrote:
> Archie> -  [ lots of code ]
> Archie> +      return this == o;
> Archie>    }
>  
> I don't think there's a guarantee that every call to Class will return
> an identical Method.  You have to look at the fields somehow.

If two different Method objects are equal according to the specification
of Method.equals(), then that implies that a class declares two
distinct methods with identical names, parameter types, and return
types... is that possible?? Wouldn't such a class fail verification?

I'm assuming here that the VM guarantees that only one Method object
will ever be created for each declared method in a class.

Thanks,
-Archie

__________________________________________________________________________
Archie Cobbs     *     Precision I/O      *     http://www.precisionio.com


_______________________________________________
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath

Reply via email to