JDK-8199659 : 80% block coverage for Java code
  • Type: Sub-task
  • Component: specification
  • Priority: P4
  • Status: Resolved
  • Resolution: Delivered
  • Submitted: 2018-03-15
  • Updated: 2018-06-01
  • Resolved: 2018-06-01
Description
It is normally expected that test cover about 80% of Java code. 
A Java code coverage tool, such as JCov, could be used for collecting the coverage. 
This task should normally provide a link to a code coverage report.
Comments
Jcov report results from running the new tests: 100% coverage of the three new java.lang.Class methods Green coverage for code changes in: - j.l.invoke.DirectMethodHandle changes. - j.l.invoke.MethodHandles changes. (Some code deletions not covered by my tests as they pertain to the unused (and now deleted) legacy ALLOW_NESTMATE_ACCESS field) - jdk.internal.reflect.MethodAccessorGenerator - jdk.internal.reflect.Reflection.java - sun.invoke.util.VerifyAccess.java
01-06-2018

The jcov integration with jtreg no longer seems to work, as of JDK 9 - module related changes have broken things.
29-05-2018

Trying to find current info on running jcov.
15-05-2018