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

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

      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



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

              Created:
              Updated:
              Resolved: