Hi,
it looks like you're using the all-in-one JAR jacocoant.jar on your
class path. This contains a shaded version of ASM and cannot be used to
for development.
Please use the libraries org.jacoco.core and or.jacoco.report to compile
and run the examples.
Best regards,
-marc
On 09.02.14 02:39, Alexander Shyrokov wrote:
I downloaded jacoco-0.6.4
<http://search.maven.org/remotecontent?filepath=org/jacoco/jacoco/0.6.4.201312101107/jacoco-0.6.4.201312101107.zip> and
ASM 4.1 and CoreTutorial.java
<http://www.eclemma.org/jacoco/trunk/doc/examples/java/CoreTutorial.java>.
I created an eclipse project in which I referenced all the jar files
in jacoco and asm and the only source file is CoreTutorial.java. I get
the following exception:
Exception in thread "main" java.lang.AbstractMethodError:
org.jacoco.core.runtime.LoggerRuntime.generateDataAccessor(JLjava/lang/String;ILorg/jacoco/asm/MethodVisitor;)I
at
org.jacoco.core.internal.instr.ClassInstrumenter$ClassTypeStrategy.genInitializeDataField(ClassInstrumenter.java:189)
at
org.jacoco.core.internal.instr.ClassInstrumenter$ClassTypeStrategy.createInitMethod(ClassInstrumenter.java:163)
at
org.jacoco.core.internal.instr.ClassInstrumenter$ClassTypeStrategy.addMembers(ClassInstrumenter.java:133)
at
org.jacoco.core.internal.instr.ClassInstrumenter.visitEnd(ClassInstrumenter.java:116)
at org.jacoco.asm.ClassVisitor.visitEnd(Unknown Source)
at
org.jacoco.core.internal.flow.ClassProbesAdapter.visitEnd(ClassProbesAdapter.java:135)
at org.jacoco.asm.ClassReader.accept(Unknown Source)
at org.jacoco.asm.ClassReader.accept(Unknown Source)
at org.jacoco.core.instr.Instrumenter.instrument(Instrumenter.java:78)
at
org.jacoco.core.instr.Instrumenter.instrument(Instrumenter.java:117)
at org.jacoco.examples.CoreTutorial.execute(CoreTutorial.java:116)
at org.jacoco.examples.CoreTutorial.main(CoreTutorial.java:196)
I did see a post that asked about this exception, but the suggestion
was to check if the version of ASM is correct. It is 4.1 as stated by
documentation and that's what I downloaded. What am I doing wrong? I
tried java 7 and java 6.
Thanks!
--
You received this message because you are subscribed to the Google
Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "JaCoCo
and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.