草庐IT

JDTCompilerAdapter

全部标签

java - 由于依赖项无效,无法加载类 org.eclipse.jdt.core.JDTCompilerAdapter

我正在创建一个java代理,用于对某些类进行一些字节码修改org.eclipse.jdt.core.JDTCompilerAdapter是其中之一。我正在使用javassit修改一些execute()org.eclipse.jdt.core.JDTCompilerAdapter的方法|.所以我在我的代理项目中包含了ecj(使用gradle)compilegroup:'org.eclipse.jdt.core.compiler',name:'ecj',version:'4.3.1'因为我需要使用ecj的一些类。代理的目标是拦截对execute方法的调用,修改execute方法以添加对我的