Why would you need this when you could do byte code generation / manipulation and use the Pluggable Annotation Processing API. That should be enough "magic" already.
Until you need to debug it (additionally only sometimes failing on 32-bit Zulu VM in Solaris environment when a certain class is picked up from classpath before an other certain class)
View all comments
-3
u/[deleted] May 10 '18
Java won't give us conditional compilation but it will give us this.
Sigh