1.

Why Is Cobertura Causing Me To Have Classpath Conflicts With Asm?

Answer»

COBERTURA uses ASM to modify your bytecode. There are a few other popular programs that use ASM; Groovy and Hibernate, to name two. You COULD have problems if Cobertura uses a different version of asm and you add both versions to your classpath.

Cobertura only uses ASM when INSTRUMENTING. Cobertura does not need ASM in your classpath when running TESTS. If you’re seeing classpath conflicts, just make sure the asm jar that comes with Cobertura is used only by Cobertura, and only when instrumenting.

Cobertura uses ASM to modify your bytecode. There are a few other popular programs that use ASM; Groovy and Hibernate, to name two. You could have problems if Cobertura uses a different version of asm and you add both versions to your classpath.

Cobertura only uses ASM when instrumenting. Cobertura does not need ASM in your classpath when running tests. If you’re seeing classpath conflicts, just make sure the asm jar that comes with Cobertura is used only by Cobertura, and only when instrumenting.



Discussion

No Comment Found