Issue Type: Bug Bug
Affects Versions: 2.5.1
Assignee: Unassigned
Created: 29/May/12 3:15 PM
Description:

Cobertura breaks on enum classes containing a large number of elements (over 2000). After instrumenting the class a ClassFormatError is thrown:

java.lang.ClassFormatError: Invalid method Code length 76521 in class file com/example/Foo.class

This is caused by the instrumentation of the static initialization block that instantiate the elements of the enum, after the instrumentation it exceeds the 64K limit.

Maybe it would be possible to break this static block into smaller blocks if the size is more than 64k?

Project: Maven 2.x Cobertura Plugin
Priority: Minor Minor
Reporter: Emmanuel Bourg
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to