MRalwasser
MRalwasser

Reputation: 15973

How to determine the classloader during class initialization?

I am using the Eclipse debugger and set a breakpoint in a class initializer (e.g. static field initialization).

Is there a way to determine/inspect the classloader which is used to load the class?

Upvotes: 1

Views: 487

Answers (1)

nullpotent
nullpotent

Reputation: 9260

It should be...

ClassA.class.getClassLoader();

Upvotes: 1

Related Questions