byte-buddy
byte-buddy copied to clipboard
Create inner class for already loaded classes
Can I create inner classes for already loaded classes (without using custom java-agent)?
I actually need this to call private constructors and fields, but maybe there is better way to do that... Or it's could be just impossible
It does not help to add an inner class property as this is merely cosmetic. What would help would be to manipulate the nestmates attribute, but that is not possible after loading a class.
Thank you for information