Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using Lomboz plugin with Eclipse



Paul Lalonde <email@hidden> wrote:

>After experimenting with various solutions to this problem, I ended up
>creating a symlink to the classes.jar file that's inside the JavaVM
>framework.

What other solutions did you experiment with? In particular, I'd like to
know what you tried that didn't work.

I ask because classes.jar is already in the boot-classpath, so creating a
symlink to it is superfluous if the lomboz plugin is using its contents.

If the plugin is just looking for the presence of a file, then any file
should satisfy it, and a symlink is overkill.

If the plugin is looking for a jar, then any jar should work, and using the
smallest jar possible would consume less resources in the JVM. It takes
time and memory to keep a JarFile open.

In any case, reopening classes.jar to load classes from it should be either
pointless or mistaken, if I understand ClassLoaders correctly.

As far as I can tell, none of the classes contained in the reopened
classes.jar will ever be loaded by a well-behaved classloader.
Classloaders, I believe, are supposed to ask their parent classloader for
any class first, and only if that fails to return a Class should they look
for the class in their own source of classes. Since every class in the
symlinked classes.jar is already in the boot-classpath, hence loaded by the
bootstrap classloader, no class will ever be loaded from the reopened
classes.jar. Iff I understand classloaders correctly.

-- GG
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Do not post admin requests to the list. They will be ignored.




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.