Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7902777

jcov seems to start (partially) ignoring methods called from annonymous executor wrapper classes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • jcov_3.0
    • None
    • tools
    • None
    • b07
    • b08

    Description

      Noticed coverage loss for javax.tools.ForwardingFileObject for some of its methods, please see attached screenshots

      Found out that an explicit invocation of say method delete() which coverage is not recorded any more happens approximately the following way

          public void delete0001() {
              return new TestRunner(){
                  protected void execute() { testedInstance.delete(); }
              }.executeTest();
          }

      It's interesting that method FileObject::toUri() which is implemented by ForwardingFileObject and called by the tests the same way was not affected



      Attachments

        Issue Links

          Activity

            People

              lkuskov Leonid Kuskov
              dbessono Dmitry Bessonov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: