byte-buddy icon indicating copy to clipboard operation
byte-buddy copied to clipboard

Create inner class for already loaded classes

Open P3ridot opened this issue 2 years ago • 1 comments

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

P3ridot avatar Jul 28 '23 20:07 P3ridot

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.

raphw avatar Aug 03 '23 09:08 raphw

Thank you for information

P3ridot avatar Apr 01 '24 16:04 P3ridot