I have two example class files, one from an example Java app and one from an example C app (compiled to bytecode using LLJVM).
Looking at their outputs, I can see through javap -c -p that for initializing the (static) fields, the Java app shows the following block:
static {};
Code:
0: sipush 1339
3: putstatic #7 //Field SRV_ID
etc
Which is basically the <clinit>
method, if I understand. Or detected as such by a VM I am using.
The C-app however has this:
public {};
Code:
0: sipush 1339
3: putstatic #7 //Field SRV_ID
etc
What is this? My VM does not detect it.
Sample class files. THe first one is from a Java App that prints a message and waits 20s, repeat. The second is a C app that does roughly the same.
http://www.fast-files.com/getfile.aspx?file=156962
http://www.fast-files.com/getfile.aspx?file=156961
Apologies for doing it this way - I do not immediately know how to attach files or efficiently show .class files.