Thursday, July 31, 2008

Have you seen this warning earlier? I have used cobertura for many years now, and while working on this demo was frequently seeing this warning. The cobertura-report was displaying N/A for Line and Branch coverage.

When I switched back to my Mac, things were working smoothly, when I moved back to my Windows Vista laptop on which I was preparing for the demo, I was getting the same warning and no coverage results.

I tried to run the target from ant with verbose on and it displayed the warning message saying:

[cobertura-instrument] WARN visitEnd, No line number information found for class com.stelligent.demo.CustomerInfo. Perhaps you need to compile with debug=true?[cobertura-instrument] WARN visitEnd, No line number information found for class com.stelligent.demo.StringToDate. Perhaps you need to compile with debug=true?

Looked at the javac task at the Ant website, added a few more options and it worked like a charm. I have no clue why this happens on Vista, is it because I am using Java 6 here and Mc uses Java 5? Go figure.

About Me

I have worked at various levels in the software industry since my graduation in 1987. I have several years of software programming experience around the globe, from Bangalore, India to Dubai, United Arab Emirates, to the United States. I have been working on JEE and .NET technologies exclusively for the last several years. Since joining Synopsys, have been working on all of CI/CD, DevSecOps, Secure SDLC activities such as code review, Threat Modeling, ARA, and training.
I am also very involved in the Java community. Several of my own book reviews, articles have been published by JavaLobby.