Is it possible to ignore java access modifiers during compilation? (besides the javac plugin) I have a java agent that should affect modifiers in runtime. I would be interested in trying to compile the files by tricking (or somehow asking it not to look at the modifiers) the compiler.
Edit: I managed to do one thing: I created a mask class for the target class, made changes to it. Using shadow jar, I moved the mask and then deleted it. Using java agent, I loaded my class instead of the target one. And yes, it works. Perhaps someone will find some other options.