That makes sense. Thanks so much. On Dec 15, 2014 10:01 AM, "Marc R. Hoffmann" <[email protected]> wrote:
> Hi Sundar, > > The wildcards should always work, there is no specific logic for inner > classes. > > Hard to tell what causes the compiler to create a anonymous inner class > without seeing the source code. The fact that your class implements an > interface is for sure not responsible. Could be a actual anonymous inner > class declaration in your code. Also some compiler create such classes e.g. > for switches on enum types. > > Best regards, > -marc > > On 15.12.14 18:35, Sundar Rajan wrote: > > Thanks Marc, > > Yes I already excluded with a wildcard because the other class it > insisted on being 0% coverage is EntityMessageHandlerImpl.1. > Is there a pattern on when specifically the inner class is considered? I > am puzzled because this class is very similar to some other classes which > don't have the inner class being called out. What is the inner class here > anyways? Is it because it implements an interface? Many other classes do > and don't get called out. > > Thanks so much for responding. This is obviously non-critical since I > have a workaround, but I would love to have full understanding of what's > going on. > > Regards > -Sundar > > On Sun, Dec 14, 2014 at 2:13 AM, Marc R. Hoffmann < > [email protected]> wrote: >> >> Hi, >> >> this is a inner class. Try to exclude with a wildcard, this should also >> exclude inner classes: com.foo.bar.EntityMessageHandlerImpl* >> >> Regards, >> -marc >> >> On 11.12.14 23:04, [email protected] wrote: >> >>> [WARNING] Rule violated for class >>> com.foo.bar.EntityMessageHandlerImpl.1: lines covered ratio is 0.00, but >>> expected minimum is 0.75 >>> >>> I do have a class called com.foo.bar.EntityMessageHandlerImpl, and I >>> have added an <exclude> in the pom file for it. But until I add an explicit >>> exclude also for com.foo.bar.EntityMessageHandlerImpl.1 (notice the dot-one >>> at the end), build will not succeed. >>> >>> This only happens to a couple of my classes. I have a mix of classes in >>> my exclude and most of them are ignored if the coverage is below min limit. >>> >>> What can I do to help debug this further? >>> >>> Thanks >>> -Sundar >>> >>> >>> >> > -- > You received this message because you are subscribed to a topic in the > Google Groups "JaCoCo and EclEmma Users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/jacoco/qoJ2jxQr50E/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jacoco/548F220A.5040208%40mountainminds.com > <https://groups.google.com/d/msgid/jacoco/548F220A.5040208%40mountainminds.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CA%2Bk4TYC6v1KiOEvEap4xt%2Bm1-JuohsDFqAuNJcAZXC4cfhAgRQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
