First of all I want to mention that I read a lot about this problem and I didn't find any solution.
I have some unit test class, where I use mockstatic method for another class. Then when I run tests it throws "Inconsistent stackmap frames at branch..." error.
I tried all known for me ways e.g. -XX:-UseSplitVerifier or -noverify params added to maven surefire plugin, but none of them works fine. I have all the time the same state.
I tried to change version of PowerMock - older and newest - nothing changed.
I use library: PowerMockito 1.62 (using Javassist 3.19.0-GA version) Java 1.8 Maven 3.2.5
Please let me know, is there any working solution how to avoid this problem in Java8+?
Thank's for help!
-XX:-UseSplitVerifier
does not work with Java 8 anymore. The only solution is to update the tools to versions with correct stackmap support. There were ten years time⦠- Holger