JDK7 open source coverage libraries ?

182 views
Skip to first unread message

Jan Goyvaerts

unread,
Jul 17, 2012, 7:57:45 AM7/17/12
to The Java Posse
Does somebody know an open source code coverage tool running on JDK7 byte code ?

With the last version of Cobertura I'm getting verifier exceptions java.lang.VerifyError: Expecting a stackmap frame at branch target 41 in method com.n... etc... It seems it's not maintained for some time now. About two years. A shame, because Cobertura really is good stuff. But Emma's last release is even longer ago.

So, any alternative beside converting source code back to Java 6 to compile it with JDK6 ? :-)




Thomas Matthijs

unread,
Jul 17, 2012, 7:59:03 AM7/17/12
to java...@googlegroups.com
comic sans ms !

fabrizio...@tidalwave.it

unread,
Jul 17, 2012, 10:09:48 AM7/17/12
to java...@googlegroups.com


A: "The Java Posse" java...@googlegroups.com
Cc:
Data: Tue, 17 Jul 2012 13:57:45 +0200
Oggetto: [The Java Posse] JDK7 open source coverage libraries ?

> Does somebody know an open source code coverage tool running on JDK7 byte code ?

> With the last version of Cobertura I'm getting verifier exceptions java.lang.VerifyError: Expecting a stackmap frame at branch target 41 in method com.n... etc... It seems it's not maintained for some time now. About two years. A shame, because Cobertura really is good stuff. But Emma's last release is even longer ago.

> So, any alternative beside converting source code back to Java 6 to compile it with JDK6 ? :-)

Don't abandon Cobertura for this! While you're waiting for their update of library for the new JDK 7 bytecode, this option should suffice:

-XX:-UseSplitVerifier


See:

http://weblogs.java.net/blog/fabriziogiudici/archive/2012/05/07/understanding-subtle-new-behaviours-jdk-7
 
--
f.g.

Markos Fragkakis

unread,
Jul 17, 2012, 11:19:02 AM7/17/12
to java...@googlegroups.com
Kill comic sans game:

http://www.agencyfusion.com/kill-comic-sans.html 

On Tuesday, July 17, 2012 2:59:03 PM UTC+3, selckin wrote:
comic sans ms !

Jan Goyvaerts

unread,
Jul 17, 2012, 3:50:10 PM7/17/12
to java...@googlegroups.com
We're not getting font-intolerant here now, are we ? :-)

--
You received this message because you are subscribed to the Google Groups "Java Posse" group.
To view this discussion on the web visit https://groups.google.com/d/msg/javaposse/-/z9GKk6oJ6PUJ.

To post to this group, send email to java...@googlegroups.com.
To unsubscribe from this group, send email to javaposse+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/javaposse?hl=en.

Jan Goyvaerts

unread,
Jul 17, 2012, 3:57:36 PM7/17/12
to Fabrizio Giudici, java...@googlegroups.com
I'm not sure yet, but it looks like it's working again. The build system has not reported back yet, but the console showed the first tests running again.

Anyway, a *big* thank you for this hint !

Although I'm a bit pessimistic about Cobertura being updated any time soon. (Its last update dates from 2 years ago.) If that is confirmed, it's probably a good idea to look for an active replacement. I had the suggestion to look at JaCoco. It seems to have both a maven and jenkins plugin. 


--
You received this message because you are subscribed to the Google Groups "Java Posse" group.

Fabrizio Giudici

unread,
Jul 17, 2012, 4:31:27 PM7/17/12
to Fabrizio Giudici, Jan Goyvaerts, java...@googlegroups.com
On Tue, 17 Jul 2012 21:57:36 +0200, Jan Goyvaerts <java.a...@gmail.com>
wrote:

> I'm not sure yet, but it looks like it's working again. The build system
> has not reported back yet, but the console showed the first tests running
> again.
>
> Anyway, a *big* thank you for this hint !
>
> Although I'm a bit pessimistic about Cobertura being updated any time
> soon.
> (Its last update dates from 2 years ago.) If that is confirmed, it's
> probably a good idea to look for an active replacement. I had the
> suggestion to look at JaCoco <http://www.eclemma.org/jacoco/trunk/>. It
> seems to have both a maven and jenkins plugin.

Thanks back for this hint. Actually I didn't know it and, yes, sooner or
later Cobertura will get too old. Sigh. I hate when this happens. But the
good news is that I will just need to update a single superpom (I suppose
jacoco has got a Maven plugin, right?).



--
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - "We make Java work. Everywhere."
fabrizio...@tidalwave.it
http://tidalwave.it - http://fabriziogiudici.it

Jan Goyvaerts

unread,
Jul 17, 2012, 4:33:42 PM7/17/12
to Fabrizio Giudici, java...@googlegroups.com
On Tue, Jul 17, 2012 at 10:31 PM, Fabrizio Giudici <Fabrizio...@tidalwave.it> wrote:
On Tue, 17 Jul 2012 21:57:36 +0200, Jan Goyvaerts <java.a...@gmail.com> wrote:

I'm not sure yet, but it looks like it's working again. The build system
has not reported back yet, but the console showed the first tests running
again.

Anyway, a *big* thank you for this hint !

Although I'm a bit pessimistic about Cobertura being updated any time soon.
(Its last update dates from 2 years ago.) If that is confirmed, it's
probably a good idea to look for an active replacement. I had the
suggestion to look at JaCoco <http://www.eclemma.org/jacoco/trunk/>. It

seems to have both a maven and jenkins plugin.

Thanks back for this hint. Actually I didn't know it and, yes, sooner or later Cobertura will get too old. Sigh. I hate when this happens. But the good news is that I will just need to update a single superpom (I suppose jacoco has got a Maven plugin, right?).

Not exactly well documented, but it has yes. But I'd rather stick with Cobertura too.

Jan Goyvaerts

unread,
Jul 18, 2012, 3:50:49 AM7/18/12
to Fabrizio Giudici, java...@googlegroups.com
On Tue, Jul 17, 2012 at 10:33 PM, Jan Goyvaerts <java.a...@gmail.com> wrote:


On Tue, Jul 17, 2012 at 10:31 PM, Fabrizio Giudici <Fabrizio...@tidalwave.it> wrote:
On Tue, 17 Jul 2012 21:57:36 +0200, Jan Goyvaerts <java.a...@gmail.com> wrote:

I'm not sure yet, but it looks like it's working again. The build system
has not reported back yet, but the console showed the first tests running
again.

Anyway, a *big* thank you for this hint !

Although I'm a bit pessimistic about Cobertura being updated any time soon.
(Its last update dates from 2 years ago.) If that is confirmed, it's
probably a good idea to look for an active replacement. I had the
suggestion to look at JaCoco <http://www.eclemma.org/jacoco/trunk/>. It

seems to have both a maven and jenkins plugin.

Thanks back for this hint. Actually I didn't know it and, yes, sooner or later Cobertura will get too old. Sigh. I hate when this happens. But the good news is that I will just need to update a single superpom (I suppose jacoco has got a Maven plugin, right?).

Not exactly well documented, but it has yes. But I'd rather stick with Cobertura too.

Looks like the coverage analysis is back in business ! Thanks again ! :-)

However, I'm not entirely comfortable to downgrade the verifier in order to make things work. But for the time being it'll do. :-)
Reply all
Reply to author
Forward
0 new messages