Integrated: 7902724: jcov ignores covariant method overriding while gathering a methods' coverages
Leonid Kuskov
lkuskov at openjdk.java.net
Fri Jul 24 20:19:38 UTC 2020
On Wed, 22 Jul 2020 20:21:52 GMT, Leonid Kuskov <lkuskov at openjdk.org> wrote:
> This is the fix for https://bugs.openjdk.java.net/browse/CODETOOLS-7902724
> It marks both original and bridge methods as covered
>
> jcov marks a bridge method as covered ignoring an original method called by a JCK test.
> Now it marks both the original and the bridge methods as covered if the bridge method is called like as follows:
>
> I.e. if the method "Bar getObject()" is called then "Foo getObject()" is also covered -
> class Foo extends Bar {
> Foo getObject() {
> return foo;
> }
>
> synthetic bridge Bar getObject() {
> return ((Foo) this).getObject();
> }
> }
> earlier "Foo getObject()" was not taken into account as covered.
This pull request has now been integrated.
Changeset: 4fd8b8e5
Author: Leonid Kuskov <lkuskov at openjdk.org>
URL: https://git.openjdk.java.net/jcov/commit/4fd8b8e5
Stats: 12 lines in 1 file changed: 1 ins; 5 del; 6 mod
7902724: jcov ignores covariant method overriding while gathering a methods' coverages
-------------
PR: https://git.openjdk.java.net/jcov/pull/4
More information about the jcov-dev
mailing list