This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.lang.instrument.Instrumentation; | |
import java.net.URL; | |
import java.security.CodeSource; | |
import java.security.ProtectionDomain; | |
import java.util.Arrays; | |
import java.util.Comparator; | |
public class DumpClassURL { | |
public static void agentmain(String agentArgs, Instrumentation inst) { | |
Class<?>[] classes = inst.getAllLoadedClasses(); |