Cobertura uses Offline byte code instrumentation, which means it will add instructions after the compilation into the byte-code. I have a very large generated method which now I'm trying to refactor. Itself is under 64KB JVM limitation, but after being added more byte code by cobertura, it will cause the oversize error. I'm asking this question to decide how to refactor the method generating logic.

有帮助吗?

解决方案

A simple workaround could be to just exclude your generated classes or specific methods from Cobertura instrumentation.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top