Description
The jacoco agent injects a synthetic method into UDF classes as part of instrumentation for code coverage. Currently the UDF code checks the method count on java UDF classes, and it fails due to the jacoco synthetic method increasing the method count.
This causes a number of false test failures when running unit tests with jacoco instrumentation.
A simple fix is just to ignore synthetic methods in the counting process.