DEV Community

Discussion on: Build, compile, run: A crash course in classpaths

Collapse
 
5umm1t profile image
5umm1t • Edited

Great post! I'd love to hear how we can load our own version of JDK classes (i.e. a modified String class). This would need to be loaded before the bootstrap classloader if I'm not mistaken.. is that even possible?

Collapse
 
autonomousapps profile image
Tony Robalik

to accomplish that, I'm pretty sure you'd need a custom JDK. Or somehow intercept the standard class loading behavior with a custom class loader that violates the Java class loading contract.