Domanda

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.

È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top