Sunday, February 12, 2012

Running Emma with jdk7 produces "expecting a stackmap frame at branch ..."

Hey everyone.

Today while integrating adding a code coverage build step to integrate into Jenkins (using Emma), a test failed with this error:

Expecting a stackmap frame at branch target 11 in method model.bean.Car.setId(Ljava/lang/Long;)V at offset 4

... Right. And it only failed on the build server (not my machine) What on earth does that mean? Honestly, I have no idea. This post on stackoverflow suggested it was something to do with our build server running jdk7 that the binary distribution of emma did not like (2.0.5312). So, we reverted back to 1.6. That fixed the problem.

I'll probably explore that more in detail sometime, but in the meantime that's the solution.

No comments:

Post a Comment