Annotation processor vs bytecode generation
<p>What are the relative merits and demerits of <a href="http://docs.oracle.com/javase/7/docs/api/javax/annotation/processing/package-summary.html" rel="nofollow">annotation processing</a> respect to bytecode generation (e.g. with <a href="http://asm.ow2.org/" rel="nofollow">ASM</a>)? Apart from implementation difficulty, why would you prefer one over another?</p>

<p>Since a commenter asked, I'm trying to automatically generate implementations for abstract getter/setter methods, but I would like a more general answer. <em>I'm not asking what's the better way to generate getters and setters.</em> </p>
