On Thursday, June 25, 2015 at 4:24:15 PM UTC+3, Evgeny Mandrikov wrote: > Hi, > > > > Seems that you are using JaCoCo version 0.6.3 , while support for Java 8 was > added in later versions - see > http://www.eclemma.org/jacoco/trunk/doc/changes.html Please upgrade to most > recent one, which is 0.7.5 - http://www.jacoco.org/jacoco/index.html > > On Wednesday, June 24, 2015 at 3:56:38 PM UTC+2, [email protected] wrote:Hi, > After switching to Java 8 , I'm getting the bellow error. > > [echo] ValidatorBLTest.java > [jacoco:coverage] Enhancing junit with coverage > [junit] Exception in thread "main" > java.lang.reflect.InvocationTargetException > [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > [junit] at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > [junit] at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > [junit] at java.lang.reflect.Method.invoke(Method.java:497) > [junit] at > sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:386) > [junit] at > sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:401) > [junit] Caused by: java.lang.RuntimeException: Class java/util/UUID could > not be instrumented. > [junit] at > org.jacoco.agent.rt.internal_9dd1198.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:138) > [junit] at > org.jacoco.agent.rt.internal_9dd1198.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:99) > [junit] at > org.jacoco.agent.rt.internal_9dd1198.PreMain.createRuntime(PreMain.java:55) > [junit] at > org.jacoco.agent.rt.internal_9dd1198.PreMain.premain(PreMain.java:47) > [junit] ... 6 more > [junit] Caused by: java.lang.NoSuchFieldException: $jacocoAccess > [junit] at java.lang.Class.getField(Class.java:1703) > [junit] at > org.jacoco.agent.rt.internal_9dd1198.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:136) > [junit] ... 9 more > [junit] FATAL ERROR in native method: processing of -javaagent failed > [junit] Running x.y.z.bl.ValidatorBLTest > [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec > [junit] Test x.y.z.bl.ValidatorBLTest FAILED (crashed) > > Please advice , > Thanks in advance
Hi Evgeny, Actually I used version 0.7.5. After switching to 0.7.6 snapshot issue solved. -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/07b91812-cd9e-4a5f-8415-ce2b9b46179b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
