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,315
  • 10
  • 60
  • 92
Alok
  • 1,374
  • 3
  • 18
  • 44
  • 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
  • 26,012
  • 16
  • 82
  • 116