title: How to fix error while creating report (jacoco)
body: <p>I am getting an error while running my blackbox test code. I am using latest 0.8.2 jacoco jars but it throws below errors:</p>
  
  <pre><code>    BUILD FAILED
      C:\project\build-continous-integration.xml:71: The following error occurred while executing this line:
      C:\project\build-continous-integration.xml:94: The following error occurred while executing this line:
      C:\project\build-continous-integration.xml:152: Error while creating report
              at org.jacoco.ant.ReportTask.execute(ReportTask.java:501)
              at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
              at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
              at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.base/java.lang.reflect.Method.invoke(Method.java:566)
              at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
              at org.apache.tools.ant.Task.perform(Task.java:350)
              at org.apache.tools.ant.Target.execute(Target.java:449)
              at org.apache.tools.ant.Target.performTasks(Target.java:470)
              at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1388)
              at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:36)
              at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
              at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:437)
              at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
              at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
              at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
              at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.base/java.lang.reflect.Method.invoke(Method.java:566)
              at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
              at org.apache.tools.ant.Task.perform(Task.java:350)
              at org.apache.tools.ant.Target.execute(Target.java:449)
              at org.apache.tools.ant.Target.performTasks(Target.java:470)
              at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1388)
              at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:36)
              at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
              at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:437)
              at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
              at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
              at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
              at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.base/java.lang.reflect.Method.invoke(Method.java:566)
              at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
              at org.apache.tools.ant.Task.perform(Task.java:350)
              at org.apache.tools.ant.Target.execute(Target.java:449)
              at org.apache.tools.ant.Target.performTasks(Target.java:470)
              at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1388)
              at org.apache.tools.ant.Project.executeTarget(Project.java:1361)
              at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
              at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
              at org.apache.tools.ant.Main.runBuild(Main.java:834)
              at org.apache.tools.ant.Main.startAnt(Main.java:223)
              at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284)
              at org.apache.tools.ant.launch.Launcher.main(Launcher.java:101)
      Caused by: java.io.IOException: Error while analyzing 
    project\bc\infra\commands\AbstractCommand.class.
              at org.jacoco.core.analysis.Analyzer.analyzerError(Analyzer.java:170)
              at org.jacoco.core.analysis.Analyzer.analyzeClass(Analyzer.java:142)
              at org.jacoco.core.analysis.Analyzer.analyzeClass(Analyzer.java:165)
              at org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:201)
              at org.jacoco.ant.ReportTask.createBundle(ReportTask.java:570)
              at org.jacoco.ant.ReportTask.createReport(ReportTask.java:542)
              at org.jacoco.ant.ReportTask.execute(ReportTask.java:495)
              ... 42 more
      Caused by: java.lang.IllegalArgumentException
              at org.objectweb.asm.ClassReader.&lt;init&gt;(Unknown Source)
              at org.objectweb.asm.ClassReader.&lt;init&gt;(Unknown Source)
              at org.jacoco.core.analysis.Analyzer.analyzeClass(Analyzer.java:118)
              at org.jacoco.core.analysis.Analyzer.analyzeClass(Analyzer.java:140)
              ... 47 more
  </code></pre>
  
  <p>I've checked plenty of topics but most of the issues are about instrumented class but here I do not see this error. Do someone has any idea how to fix it?
  If you need more information please let me know.</p>
  
  <p>Thank you in advance.</p>