I removed instrumentation for synthetic methods in the general case. This basically entailed moving the synthetic checks to ThrowOnNullMethodVisitor.
Added test data. Refactored the test to use the same classloader, otherwise the clazz.getMethod(...) didn't really work as expected. Added a way of checking if a method has been instrumented by checking the its constants for validation messages.
I removed instrumentation for synthetic methods in the general case. This basically entailed moving the synthetic checks to
ThrowOnNullMethodVisitor
.Added test data. Refactored the test to use the same classloader, otherwise the clazz.getMethod(...) didn't really work as expected. Added a way of checking if a method has been instrumented by checking the its constants for validation messages.