When will Javassist 3.17.0-GA be available [closed]

陌路散爱 提交于 2019-12-24 15:58:35

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/12493431/when-will-javassist-3-17-0-ga-be-available

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!