JaCoCo code coverage fails since ConstraintDescriptorImpl#buildAnnotationParameterMap() does not filter out synthetic methods

Description

ConstraintDescriptorImpl.buildAnnotationParameterMap does not filter out sythetic methods.

Resulting the following exception:

Fix:

Environment

Java 8 112 Eclipse 4.6.1 Windows 7

Activity

Jeff MaxwellDecember 12, 2016 at 8:37 PM

PR #604

Jeff MaxwellDecember 12, 2016 at 6:49 PM
Edited

Unit test is a bit challenging as it involves instrumentation.

I will put in a pull.

Note that this does not fix all issues however.
When running coverage on specific sets of tests I receive a new error, but this might be this issue.

When the tests are run individually I do not get the error.

Guillaume SmetDecember 12, 2016 at 5:29 PM

Good catch. Any idea on how we could write a unit test for it?

Would you be willing to provide a pull request?

Fixed

Details

Assignee

Reporter

Bug Testcase Reminder (view)

Bug reports should generally be accompanied by a test case!

Bug Testcase Reminder (edit)

Bug reports should generally be accompanied by a test case!

Participants

Guillaume Smet
Jeff Maxwell

Pull Request

Components

Fix versions

Affects versions

Priority

Created December 12, 2016 at 4:52 PM
Updated October 19, 2017 at 4:09 PM
Resolved October 4, 2017 at 2:23 PM