rnett
09/19/2024, 5:18 PMjw
09/19/2024, 5:22 PM.jar
of a dependency is present as part of compilation, but that same .jar
is then put on the classpath of java
when running the application. It's not part of the compilation unit such that you could modify it. You would have to do that as a post-processing step using something like ASM or the new JDK ClassFile API over the entirety of your application's class files.
There's also tools like ProGuard or R8 which are open source and in which you could write a transform step. R8 has an IR that's much higher-level than processing raw bytecode.jw
09/19/2024, 5:24 PMrnett
09/19/2024, 5:24 PMR8 has an IR that's much higher-level than processing raw bytecode.TIL, that sounds promising. I'm hoping to use a condenser from lyden eventually