sagarvyass

Results 4 comments of sagarvyass

update to this, still not working ``` public static void premain(String arg, Instrumentation inst) throws Exception { File temp = Files.createTempDirectory("tmp").toFile(); ClassInjector.UsingInstrumentation.of(temp, ClassInjector.UsingInstrumentation.Target.BOOTSTRAP, inst).inject(Collections.singletonMap( new TypeDescription.ForLoadedType(MyInterceptor.class), ClassFileLocator.ForClassLoader.read(MyInterceptor.class))); new AgentBuilder.Default() .with(AgentBuilder.RedefinitionStrategy.RETRANSFORMATION)...

would the advice be able to intercept core java packages like Runtime.exec() ?

I have tried LTW using aspectJ weaver as a java agent, still couldn’t intercept. Is there some resource you could help with?

can you please share the links?