Seems it is a good approach for general method filtering. JaCoCo can provide a SPI for filtering and simply adding a implementation to the classpath should work for remove an entire method from report. (but unfortunately the ServiceLoaded is only available for Java >= 6)
Now looks that filtering generated bytecode constructs within a method is much harder than simply filtering a entire method.
Seems it is a good approach for general method filtering. JaCoCo can provide a SPI for filtering and simply adding a implementation to the classpath should work for remove an entire method from report. (but unfortunately the ServiceLoaded is only available for Java >= 6)
Now looks that filtering generated bytecode constructs within a method is much harder than simply filtering a entire method.