0

I need to get class loader for calling class of current method in Java8 . But since Reflection.getCallerClass() has been removed now , can anyone suggest any other way to get classLoader of calling class?

Thanks

radu florescu
  • 4,289
  • 10
  • 60
  • 91
Alok
  • 1,264
  • 2
  • 15
  • 42
  • Maybe you should tell us *why* you think you need the caller’s `ClassLoader`. Otherwise it’s likely to become a typical XY problem. – Holger Dec 16 '14 at 09:50

1 Answers1

0

Yes you are correct, Reflection.getCallerClass() has been removed from Java 8 version.

refer this for more info.

Community
  • 1
  • 1
Ankur Singhal
  • 25,030
  • 13
  • 76
  • 111