I am developing an application that analyzes Java applications (Windup). I'd like to be able to recognize programatically if a .class file was generated instead of written by a programmer and compiled.
As a human, I can tell because the decompiled code doesn't make much sense. It looks a bit like some kind of java-ish mix of C.
I could somehow implement recognizing the resulting decompiled code. However, decompilation takes time, I'd like to skip decompiling for generated classes.
For more information on what is a generated .class file, see here.
Is there a way to recognize generated .class just from headers? Or perhaps some specific bytecode sequence?