|
From: SourceForge.net <no...@so...> - 2012-05-30 13:25:58
|
Bugs item #3530803, was opened at 2012-05-30 06:25 Message generated for change (Tracker Item Submitted) made by smanux You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=3530803&group_id=130558 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Emmanuel Bourg (smanux) Assigned to: Nobody/Anonymous (nobody) Summary: ClassFormatError (Invalid method Code length) on large enums Initial Comment: 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? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720015&aid=3530803&group_id=130558 |