Question

Anyone know when Javassist 3.17.0-GA will be made available?

There is a bug in Javaassit (fixed in 3.17.0-GA) that is breaking PowerMock when used with Java 7: https://issues.jboss.org/browse/JASSIST-160?focusedCommentId=12718716&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-12718716

Associated PowerMock bug http://code.google.com/p/powermock/issues/detail?id=355

Was it helpful?

Solution

It's available. It looks like updating the version has resolved my issue which I believe would have been similar to yours. I assume your problem is some variation of java.lang.VerifyError: Expecting a stackmap frame.

At the time of writing version 3.19 of Javassist is available. PowerMock 1.5.1 is also updated to use Javassist 3.18 GA.


Alternative fixes
Besides the upgrade, one of the other recommended solutions is the use of the JVM argument -XX:-UseSplitVerifier from a combination of here on Java 7 stack map issues and here on the PowerMock issues registry about java.lang.VerifyError (which you have linked to).

Implementations Of Alternative Fixes
In IntelliJ I've added the -UseSplitVerifier to my JUnit runner but there are also recommendations about adding it to the Maven Surefire plugin in your build in order to make the solution portable such as is recommended in this post.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top