I think you are right in that JVMs are allowed to wait until first use
to load a class, but the one time I checked the Sun JVM it didn't work
that way. It actively loaded the class  (which is also allowed). I
would bet dollars to donuts we'd find it doesn't wait.


On Mon, Jan 18, 2010 at 1:22 AM, Benson Margulies <bimargul...@gmail.com> wrote:
> Sean, that's not how class loaders work AFAIK. the mere presence of an
> import does not trigger the load. You have to touch it.
>
> HOWEVER, if I am wrong, I will (a) buy the beer, and (b) add the
> reflective code to get rid of the import.

Reply via email to