I am aware arrays have a fixed size field. I can edit this in reflection to increase it's value. But, I don't think that's the only thing I would have to edit the array size via reflection. I cannot seem to find the source for the array class online of [L
.
Current progress:
Object[] foo = new Object[0];
Field field = foo.getClass().getField("size");
This results in a NoSuchFieldException
.
I was trying to hack Java similar to how enums were hacked. Although I don't know where everything is stored. I do have access to the reflection factory: https://www.niceideas.ch/roller2/badtrash/entry/java_create_enum_instances_dynamically