On Monday, June 24, 2019 at 12:48:12 AM UTC+2, jahunsmythe wrote: > > Evgeny, > > > > Thanks for the response. > > > > JMockit 1.47 isn’t released yet, according to the JMockit website. That > is why I upgraded to 1.46 rather than 1.47. And 1.47 isn’t available on > Maven Central yet. > > > > I looked at the classpath of the project in Eclipse, which is generated > from the Maven pom.xml, and it has JMockit 1.46. >
> In the pom.xml, for the maven-surefire-plugin, I have explicitly specified > the ASM 7.1 as a dependency. I even explicitly added ASM 7.1 to be a test > dependency in the pom.xml (outside of maven-surefire-plugin), and that > didn’t fix it either. > Of course addition of ASM as dependency doesn't help, because as was already said in https://groups.google.com/d/msg/jacoco/_rAZSDVqhcw/BM2BG43tAAAJ JMockit has its own bytecode manipulation package "mockit.asm" ( https://github.com/jmockit/jmockit1/tree/master/main/src/mockit/asm ) that is not ASM library ( org.objectweb.asm ). > Since this builds correctly on the command line, and does not in Eclipse > 2019-03, and the dependencies are correct in Eclipse for the project, this > has to be an Eclipse problem. There is something internal to Eclipse that > is pulling in an older version of ASM that doesn’t have the > NestHost/NestMembers problem fix, as you pointed out in the stack trace. > In https://groups.google.com/d/msg/jacoco/_rAZSDVqhcw/vfgOi7j3AAAJ I haven't talked about ASM dependency at all, and pointed out that your stacktrace shows usage of old JMockit. Hope now clear that JMockit has nothing do with ASM libarary. And AFAIK JMockit uses Java agent, so you should check not only classpath, but also VM arguments. -- 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/b7d864ac-9c02-469d-b95b-ed15dd40c411%40googlegroups.com.
