title: Jacoco classes in bundle do not match for Transactional methods
body: <p>I'm testing an app with JUnit5 and using Jacoco for coverage report.
  Tests are executed Ok and test reports are present.</p>
  
  <p>However, Jacoco report has the following logs if service contains methods, annotated with @Transactional</p>
  
  <pre><code>[ant:jacocoReport] Classes in bundle 'my-service' do no match with execution data. For report generation the same class files must be used as at runtime.
  [ant:jacocoReport] Execution data for class mypackage/SampleService does not match. 
  </code></pre>
  
  <p>This error occurres for all @Service classes methods, annotated with @Transactional, plain classes coverage is calculated ok.</p>
  
  <p>Here's a sample test:</p>
  
  <pre><code>@SpringBootTest
  @ExtendWith(SpringExtension.class)
  public class MyServiceTest {
  
      @Autowired
      private SampleService sampleService;
  
      @Test
      public void doWork(){
          sampleService.doWork();
      }
  }
  </code></pre>
  
  <p>Works fine. Coverage is non-zero:</p>
  
  <pre><code>public class SampleService {
  
      public void doWork(){
          System.out.println("HEY");
      }
  }
  </code></pre>
  
  <p>0% coverage:</p>
  
  <pre><code>public class SampleService {
  
      @Transactional
      public void doWork(){
          System.out.println("HEY");
      }
  }
  </code></pre>
  
  <p>Transactional creates a proxy around actuall class. But, isn't there an out-of-box way for Jacoco  to handle such a common situation?</p>
  
  <p>I've tried @EnableAspectJAutoProxy annotaion with different flag variations, checked that up-to-date Jupiter engine and Jacoco plugin are used</p>
  
  <p>Here's gradle config:</p>
  
  <pre><code>subprojects {
      test {       
          useJUnitPlatform()
      }
  
      jacocoTestReport {
          afterEvaluate {
              classDirectories.from = files(classDirectories.files.collect {
                  fileTree(dir: it, exclude: '*Test.java')
              })
          }
  
          reports {
              html.enabled = true
              xml.enabled = true
              csv.enabled = false
          }
      }
  }
  </code></pre>
  
  <p>Any help appreciated</p>