Hi ,Evgeny & Marc: Seems going well with lastest code. There are some diffs between now and the version i had before.
Thanks for all your help! Regards, George 在2021年1月27日星期三 UTC+8 下午8:24:34<Evgeny Mandrikov> 写道: > On Wed, Jan 27, 2021 at 12:40 PM fawu shi <[email protected]> wrote: > >> >> Jacoco Version: 0.8.7-SNAPSHOT - i download the lastest source from >> github. >> command line for build : mvn clean test >> JDK version: 1.8.0_192, >> >> > Are you sure that you cloned the correct repository from GitHub? > Are you sure that you haven't done some modifications before building? > > I'm asking because > > On Wed, Jan 27, 2021 at 12:21 PM fawu shi <[email protected]> wrote: > >> When i catch more exception, there is a NullPointerException on >> CounterImpl.java:33. >> But it just a initial variable: >> >> private static final CounterImpl[][] SINGLETONS = new >> CounterImpl[SINGLETON_LIMIT+ 1][]; >> >> why this is a NullPointerException? >> > > line 33 in CounterImpl.java is different from the one included in your > email - see > > https://github.com/jacoco/jacoco/blob/a2c723cab221d4ea245eb15a0c628f011aa146e6/org.jacoco.core/src/org/jacoco/core/internal/analysis/CounterImpl.java#L33 > > And also because > > On Wed, Jan 27, 2021 at 12:40 PM fawu shi <[email protected]> wrote: > >> >> java.lang.NoClassDefFoundError: Could not initialize class >> org.jacoco.core.internal.analysis.CounterImpl >> at >> org.jacoco.core.analysis.CoverageNodeImpl.<init>(CoverageNodeImpl.java:69) >> > > line 69 can't appear in stack trace, because there is no code on this > line, only comment - see > > https://github.com/jacoco/jacoco/blob/a2c723cab221d4ea245eb15a0c628f011aa146e6/org.jacoco.core/src/org/jacoco/core/analysis/CoverageNodeImpl.java#L69 > > And also because after cloning > > git clone [email protected]:jacoco/jacoco.git > cd jacoco > > where according to command > > git rev-parse HEAD > > last commit is > > a2c723cab221d4ea245eb15a0c628f011aa146e6 > > execution of > > mvn verify > > in command line locally on my machine using > > java version "1.8.0_192" > Java(TM) SE Runtime Environment (build 1.8.0_192-b12) > Java HotSpot(TM) 64-Bit Server VM (build 25.192-b12, mixed mode) > > as well as builds in our CI with various JDK versions are successful - > https://dev.azure.com/jacoco-org/JaCoCo/_build/results?buildId=144&view=results > > > Regards, > Evgeny > > -- 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/110b388d-0103-479a-a82c-1d0dc8cfca26n%40googlegroups.com.
