JDK 1.5 support in coverage tool
Brought to you by:
groboclown
The current version of the code coverage tool does not
have support for JDK 1.5. This is due to the version
of BCEL being used.
The latest version of BCEL (still in CVS at the moment)
has fixed this issue. The tool should upgrade its BCEL
version to support this.
Logged In: YES
user_id=729457
Is there any update on the status of this bug? Any daily
build we could use while this problem is being fixed? We
use grobo code coverage fairly extensively as part of our
development environment, and were fine when we upgraded to
run under the JDK 5 jvm. But now that we are using JDK 5
language features, we simply can't run any code instrumented
by grobocc.
We would be glad to test fixes, build from source, send
reproducible test cases for failure, etc.
The current error we receive is:
java.lang.reflect.Invocation
TargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
Caused by: java.lang.ClassFormatError: LVTT entry for
'info' in
class file com/portblue/util/exception/PBUsageException does
not match any LVT
entry
at java.lang.ClassLoader.defineClass1(Native Method)
Thanks,
Ari Miller
Logged In: YES
user_id=729457
I built a version of BCEL from the latest source code. In
theory, that should support JDK 5 language features.
I then tried rebuilding grobo code coverage from source with
the new BCEL library, but I couldn't get the grobo build
working in an hour.
I instead updated the 1.1 code coverage grobo libraries
directly with the latest BCEL classes. That didn't work.
Logged In: YES
user_id=171822
I, too, have been working through this issue trying to use
what's in BCEL's CVS and Subversion projects. Neither seem
to be working right.
I'm looking at moving this over to ASM, as that seems to
have a more active community around it.
Logged In: YES
user_id=70034
Originator: NO
This is a very old request, but there's still interest out there for a JDK 1.5/1.6 version of this great tool!
Logged In: YES
user_id=171822
Originator: YES
Thank you for the interest in the coverage tool. However, due to the availability of other tools such as Emma (http://emma.sourceforge.net/), and a large amount of effort required to move this coverage tool over to a different technology platform, I have stopped development on this.
Logged In: YES
user_id=70034
Originator: NO
Thanks for the pointer. I did some looking around too and the one I found was cobertura. instrument target basically the same, so it was easy to port over.