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

jcov seems to become ignoring static methods in interfaces

XMLWordPrintable

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

      It seems that some of the recent changes removed the coverage for static methods in interfaces like

      package java.util.function;

      @FunctionalInterface
      public interface IntUnaryOperator {
          static IntUnaryOperator identity() {
              return t -> t;
          }
      }

      The test code calling such method seems to be now ignored by JCov

      Please see the screenshot of JCov report

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

              Created:
              Updated:
              Resolved: