Hello,
i try to combine jcarder and emma (
http://emma.sourceforge.net/index.html
). Emma is a code coverage tool. With the output generated by emma i
would be able to ensure that all relevant code has been run under the
control of jcarder...
Emma manipulates the class files for its purpose. Unfortunately,
jcarder doesn't like this changes. All manipulated classes generate an
error:
Failed to transform the class
com.abc.XYZ: Invalid end label (must be
visited first)
The error is reported at [jcarder.]ClassTransformer:79
Here's the stackTrace (which is not shown normally...):
java.lang.IllegalArgumentException: Invalid end label (must be visited
first)
at
com.enea.jcarder.org.objectweb.asm.util.CheckMethodAdapter.checkLabel
(Unknown Source)
at
com.enea.jcarder.org.objectweb.asm.util.CheckMethodAdapter.visitLocalVariable
(Unknown Source)
at com.enea.jcarder.org.objectweb.asm.MethodAdapter.visitLocalVariable
(Unknown Source)
at
com.enea.jcarder.agent.instrument.StackAnalyzeMethodVisitor.visitLocalVariable
(StackAnalyzeMethodVisitor.java:190)
at com.enea.jcarder.org.objectweb.asm.ClassReader.accept(Unknown
Source)
at com.enea.jcarder.org.objectweb.asm.ClassReader.accept(Unknown
Source)
at com.enea.jcarder.agent.instrument.ClassTransformer.instrument
(ClassTransformer.java:116)
at com.enea.jcarder.agent.instrument.ClassTransformer.transform
(ClassTransformer.java:79)
at sun.instrument.TransformerManager.transform
(TransformerManager.java:169)
at sun.instrument.InstrumentationImpl.transform
(InstrumentationImpl.java:365)
at java.lang.ClassLoader.defineClass1(Native Method)
...
Is this jcarders or emmas 'fault'?
In case of an error in emma: Could you be so kind to inform the author
of emma directly as i am not really into that bytecode topic.
Kind regards
Henning