I am currently working on a platform that actively uses dynamic byte code modification routines through the ASM library. I was able to successfully use all the necessary classes of the system except the array class. (i.e. String [], int [], etc.), this is because the array class itself is a dynamic type, so the rt.jar file actually does not have a class file, as far as I know.
However, it seemed to me that even the type of the array extends java.lang.Object, although the modification of the Object class will be less ideal, not least because this will lead to the fact that any changes will be distributed to the entire subclass, this will allow me to indirectly add an extra primitive field to the array class, which, by the way, is all that I want to achieve.
Besides the obvious caveats that I mentioned, will it cause any other platform related issues?
Giles thompson
source share