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.