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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • jcov_3.0
    • Affects Version/s: None
    • Component/s: 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



            Assignee:
            Leonid Kuskov
            Reporter:
            Dmitry Bessonov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: