classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Method.equals() question


From: Per Bothner
Subject: Re: Method.equals() question
Date: Fri, 28 Feb 2003 14:51:37 -0800
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3b) Gecko/20030210

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

Why are you assuming this?  It is possible the VM internal
data structures are unrelated to java.lang.reflect.Method,
and so it may make sense to create a new one each time it
is requested than try to cache it.
--
        --Per Bothner
address@hidden   http://www.bothner.com/per/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]