Вопрос

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