Can JCov provide test/coverage reports for Native Java classes eg java.lang.String?

HAWKER JEFFREY j-hawker at sts-inc.co.jp
Thu Feb 8 23:56:22 UTC 2018


To: JDK Tools Members,

I would greatly appreciate your thoughts on this:
Can JCov provide test/coverage reports for Native Java classes eg java.lang.String?


I wanted to demonstrate the effectiveness of JCov to a Japanese audience by generating a coverage report on Native Classes, for example java.lang.String. In other words, a way to generate coverage reports on Junit test classes for Native Java Class. Is that possible?

I also want to do this on Java1.4 using Junit3 and Java8 using Junit4 and then compare coverage reports. From the online documentation I am a little confused if Java1.4 is supported:
https://wiki.openjdk.java.net/display/CodeTools/How+To+Build+JCov   Requirements: JDK version 5.0
https://wiki.openjdk.java.net/display/CodeTools/jcov   JCov supports applications on JDK 1.0 and higher (including JDK 8)


I am struggling to find a coverage tool that can accomplish this. Is JCov the potential tool?
I would really appreciate any response that can help me move forward.


Many thanks in advance,
Jeff


More information about the members mailing list