BT

Facilitating the Spread of Knowledge and Innovation in Professional Software Development

Write for InfoQ

Topics

Choose your language

InfoQ Homepage News Java Community Release First OpenJDK Coverage Numbers

Java Community Release First OpenJDK Coverage Numbers

Leia em Português

Lire ce contenu en français

Bookmarks

The global AdoptOpenJDK initiative started by the London Java Community to improve developer participation in OpenJDK has released the first set of coverage numbers for OpenJDK.

Oracle have always generated coverage numbers via the jcov tool for their build of Java, but have never released coverage numbers.

Discussions between AdoptOpenJDK members and Oracle's Quality team indicate that the AdoptOpenJDK numbers are not significantly different from the internal Oracle numbers, but Rory O'Donnell cautioned that "comparing our internal numbers with yours is like comparing apples with pears".

The coverage numbers can be found here.

On the whole, the coverage numbers look reasonable, although some care is advised when reading them. For example, one of the worst performing packages according to the coverage metrics is the brand-new semi-functional support in java.util.function, with several of the members scoring 0% coverage.

However, on inspecting the line level coverage, it is immediately apparent that these strange results are actually being caused by Java 8 functional interfaces with very small amounts of obviously-correct code in default methods, and are not significant.

By contrast, one of the best-scoring group of packages is another new Java 8 feature - the new date and time support contained in java.time and its subpackages.

 

Rate this Article

Adoption
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Community comments

  • Um...

    by Gil Tene,

    Your message is awaiting moderation. Thank you for participating in the discussion.

    What set of tests is this coverage calculated for?

  • 404

    by Mauro Molinari,

    Your message is awaiting moderation. Thank you for participating in the discussion.

    The link currently doesn't work (404 error).

  • Re: Um...

    by Ben Evans,

    Your message is awaiting moderation. Thank you for participating in the discussion.

    Hi Gil,

    AFAIK, that's just the standard set of tests that ship with OpenJDK.

    Mani, Martijn or John Oliver would know more.

  • Re: 404

    by Ben Evans,

    Your message is awaiting moderation. Thank you for participating in the discussion.

    Hi Mauro,

    That's a direct link to the last build - but it's currently red, so the artifacts don't get generated. :(

    The website looks like it needs a cleanup to allow easy access to historical reports - right now it looks like you can only view the latest (if it exists) or download a tarball.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

BT