Have a look at the following link: class file format and pay special attention to the access_flags member of the class description structure. If you'd mask (i.e. 'nand') away the ACC_FINAL (0x0010) bit, the class is assumed not to be final. If you 'or' in the ACC_PUBLIC (0x0001) bit, you've automagically turned it into a public class also. Don't tell anyone I told you, because I don't hack never. kind regards
posted 16 years ago
Thanks, but how would this work at runtime? I don't want to change the rt.jat classes before runtime, because I want this to work with any VM and by just running my app (i.e. java myApp). So I can do runtime byte-code engineering, but if System's already defined by the bootstrap loader, can I grab that class def, "nand" the modifier, create a new class extending that, and actually have the VM accept that new class' definition?
When all four tires fall off your canoe, how many tiny ads does it take to build a doghouse?
create, convert, edit or print DOC and DOCX in Java