cobertura/cobertura — pull request #39 by nhnb (2013-07-11 11:55:38+00:00)
Title: Fixed ClassNotFoundException during instrumentation.

Fixed ClassNotFoundException during instrumentation.

Java 7 class failes contain additional information for the verifier. ASM needs to determine the common super class in some situations and uses Class.forName() for this task.

This pull requests puts the required files on the classpath of the instrumenter, so that ASM will find them. It adds a new nexted element to the task. The auxClasspath is required to provide super classes from a code location, that shall not be instrumented. It's the same approach Findbug uses.

Note: This is kind of a quick hack. A clean solution would patch ASM to read the required files from an extra classpath instead of its own classpath. Sorry for the automatic code formating at the beginning.