[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.memory-analyzer] Re: Classes from rt.jar loaded by different loaders ?

Satish Burnwal wrote:

Then I observed another class loader sun.misc.Launcher$AppClassLoader and there also I see that it has references to classes java.util.HashMap. This has led me to confusion, I always thought that if system CL is loading classes like java.util.HashMap, it will not be loaded by any other class loader since it is the parent CL and a class loaded by a loader can not be loaded by its child loaders.

You are right - all classes from the rt.jar should be loaded using the system class loader. What's confusing me is that you say "it has references to classes" - of course, the another class loader can have references to those classes, but it should not define them.


Check out the "Java Basics" -> "Class Loader Explorer". It shows all class loaders, the classes the define and their parent class loader. I just ran this query on two dumps and could not find any problems. Do not hesitate to copy and paste the view to this forum to discuss.

Andreas.