-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Maveners,
I'm using the Cobertura plugin for generate some (hopefully useful :-)) reports: <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <compilerVersion>1.4</compilerVersion> <source>1.4</source> <target>1.4</target> <debug>true</debug> </configuration> </plugin> ... <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> <version>2.0-SNAPSHOT</version> <executions> <execution> <goals> <goal>clean</goal> </goals> </execution> </executions> </plugin> ... </build> <reporting> <plugins> ... <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> <version>2.0-SNAPSHOT</version> </plugin> ... </plugins> </reporting> I thought I've instrumented the compiler to add debug info to the compiled classes as shown above, but when Cobertura is running, I see several warnings saying that there's no line number information for some classes, and I should compile with debug=true: [INFO] [cobertura:instrument] [INFO] Cobertura 1.7 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file Instrumenting 1963 classes to c:\devel\base-maven\target\generated-classes\cobertura [cobertura] WARN [main] net.sourceforge.cobertura.instrument.ClassInstrumenter - No line number information found for class com.xtramind.common.converter.manager.DefaultConverterManager$1. Perhaps you need to compile with debug=true? ... On my console there are a couple of these warnings, and all have in common that these classes are either anonymous inner classes (...$1) or are generated by rmic (..._Stub) (I'm executing it via the antrun plugin). According to the Ant documentation the rmic task can also add debug information which I omitted so far. I'm wondering whether it is normal that the anonymous inner classes don't have any debug information assigned according to Cobertura's output? Regards Thorsten -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (MingW32) iD8DBQFEMkbdQvObkgCcDe0RAnP8AKCXPGe98/6Y9u3hgAyeljR6lGghiACfTuwF +8ePpEeRe7ibCQWM5JVv8GQ= =Y6lt -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]