{"action":"created","issue":{"url":"https://api.github.com/repos/jayway/powermock/issues/375","labels_url":"https://api.github.com/repos/jayway/powermock/issues/375/labels{/name}","comments_url":"https://api.github.com/repos/jayway/powermock/issues/375/comments","events_url":"https://api.github.com/repos/jayway/powermock/issues/375/events","html_url":"https://github.com/jayway/powermock/issues/375","id":97074602,"number":375,"title":"Test generates java.lang.VerifyError: Inconsistent stackmap frames at branch target","user":{"login":"johanhaleby","id":187029,"avatar_url":"https://avatars.githubusercontent.com/u/187029?v=3","gravatar_id":"","url":"https://api.github.com/users/johanhaleby","html_url":"https://github.com/johanhaleby","followers_url":"https://api.github.com/users/johanhaleby/followers","following_url":"https://api.github.com/users/johanhaleby/following{/other_user}","gists_url":"https://api.github.com/users/johanhaleby/gists{/gist_id}","starred_url":"https://api.github.com/users/johanhaleby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanhaleby/subscriptions","organizations_url":"https://api.github.com/users/johanhaleby/orgs","repos_url":"https://api.github.com/users/johanhaleby/repos","events_url":"https://api.github.com/users/johanhaleby/events{/privacy}","received_events_url":"https://api.github.com/users/johanhaleby/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jayway/powermock/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/jayway/powermock/labels/imported","name":"imported","color":"FFFFFF"},{"url":"https://api.github.com/repos/jayway/powermock/labels/Priority-High","name":"Priority-High","color":"FFFFFF"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":144,"created_at":"2015-07-24T15:14:22Z","updated_at":"2015-07-24T15:28:03Z","closed_at":null,"body":"_From [kurm...@gmail.com](https://code.google.com/u/111903686446163804814/) on November 06, 2011 15:23:48_\n\nI suspect this may be a manifestation of this issue: https://bugs.eclipse.org/bugs/show_bug.cgi?id=339388 .  It wasn't clear if this is a Java issue, or something that needs to be fixed on a product-by-product basis, so I thought I'd bring it to your attention just in case. What steps will reproduce the problem? 1. Compiling and running my project with Java 1.7.0_01 on Windows  (I tried to isolate the problem, but it only appears in the context of the entire project.) What is the expected output? What do you see instead? When I run certain tests (described below), I get the following runtime error:\r\n1) testOpenWriter_file_string_autoflush_setsEncodings(edu.gvsu.kurmasz.warszawa.io.OutputHelperTest2)\r\njava.lang.VerifyError: Inconsistent stackmap frames at branch target 134 in method edu.gvsu.kurmasz.warszawa.io.OutputHelperTest2$CharsetTes\r\nter.values()[Ledu/gvsu/kurmasz/warszawa/io/OutputHelperTest2$CharsetTester; at offset 126\r\n        at edu.gvsu.kurmasz.warszawa.io.OutputHelperTest2.testOpenWriter_file_string_autoflush_setsEncodings(OutputHelperTest2.java:353)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)\r\n        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)\r\n        at java.lang.reflect.Method.invoke(Unknown Source)\r\n        at org.junit.internal.runners.TestMethod.invoke(TestMethod.java:66)\r\n        at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$PowerMockJUnit44MethodRunner.runTestMethod(PowerMoc\r\nkJUnit44RunnerDelegateImpl.java:307)\r\n        at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:86)\r\n        at org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:94)\r\n        at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$PowerMockJUnit44MethodRunner.executeTest(PowerMockJ\r\nUnit44RunnerDelegateImpl.java:294)\r\n        at org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl$PowerMockJUnit47MethodRunner.executeTestInSuper(Pow\r\nerMockJUnit47RunnerDelegateImpl.java:112)\r\n        at org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl$PowerMockJUnit47MethodRunner.executeTest(PowerMockJ\r\nUnit47RunnerDelegateImpl.java:73)\r\n        at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$PowerMockJUnit44MethodRunner.runBeforesThenTestThen\r\nAfters(PowerMockJUnit44RunnerDelegateImpl.java:282)\r\n        at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:84)\r\n        at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:49)\r\n        at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.invokeTestMethod(PowerMockJUnit44RunnerDelegateImpl\r\n.java:207)\r\n        at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.runMethods(PowerMockJUnit44RunnerDelegateImpl.java:\r\n146)\r\n        at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$1.run(PowerMockJUnit44RunnerDelegateImpl.java:120)\r\n        at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:34)\r\n        at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:44)\r\n        at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.run(PowerMockJUnit44RunnerDelegateImpl.java:118)\r\n        at org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl.run(JUnit4TestSuiteChunkerImpl.java:102)\r\n        at org.powermock.modules.junit4.common.internal.impl.AbstractCommonPowerMockRunner.run(AbstractCommonPowerMockRunner.java:53)\r\n        at org.junit.runners.Suite.runChild(Suite.java:128)\r\n        at org.junit.runners.Suite.runChild(Suite.java:24) What version of the product are you using? On what operating system? I'm using java 1.7.0_01 on Windows with the following jar files:\r\ncglib-nodep-2.2.jar               junit-4.8.2.jar                   objenesis-1.2.jar\r\njavassist-3.15.0-GA.jar           mockito-all-1.8.5.jar             powermock-mockito-1.4.10-full.jar Please provide any additional information below. * Everything works fine I compile the project using java 1.6.\r\n* Everything works fine if I run the tests using this flag: -XX:-UseSplitVerifier \r\n* If I take the offending class and its test and move them to a new project, the problem disappears (i.e., I can't seem to isolate the problem in a small example.)\r\n\r\nThus, I suspect this may be a manifestation of this issue: https://bugs.eclipse.org/bugs/show_bug.cgi?id=339388 .  It wasn't clear if this is a Java issue, or something that needs to be fixed on a product-by-product basis.\r\n\r\nIf it helps, I've also attached a copy of the test file.  The problem seems to be related to the enum CharacterTester\n\n**Attachment:** [OutputHelperTest.java](http://code.google.com/p/powermock/issues/detail?id=355)\n\n_Original issue: http://code.google.com/p/powermock/issues/detail?id=355_"},"comment":{"url":"https://api.github.com/repos/jayway/powermock/issues/comments/124558899","html_url":"https://github.com/jayway/powermock/issues/375#issuecomment-124558899","issue_url":"https://api.github.com/repos/jayway/powermock/issues/375","id":124558899,"user":{"login":"johanhaleby","id":187029,"avatar_url":"https://avatars.githubusercontent.com/u/187029?v=3","gravatar_id":"","url":"https://api.github.com/users/johanhaleby","html_url":"https://github.com/johanhaleby","followers_url":"https://api.github.com/users/johanhaleby/followers","following_url":"https://api.github.com/users/johanhaleby/following{/other_user}","gists_url":"https://api.github.com/users/johanhaleby/gists{/gist_id}","starred_url":"https://api.github.com/users/johanhaleby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanhaleby/subscriptions","organizations_url":"https://api.github.com/users/johanhaleby/orgs","repos_url":"https://api.github.com/users/johanhaleby/repos","events_url":"https://api.github.com/users/johanhaleby/events{/privacy}","received_events_url":"https://api.github.com/users/johanhaleby/received_events","type":"User","site_admin":false},"created_at":"2015-07-24T15:28:03Z","updated_at":"2015-07-24T15:28:03Z","body":"_From [crow.phi...@gmail.com](https://code.google.com/u/109541167061799388431/) on May 06, 2014 07:26:38_\n\nIf your problem relates to Javassist can you update your usage to version 3.18 (javassist 3.18.1-GA)? Javassist (AFAIK) was not built to be used in the way that Java 7 works. Thus the problems. \r\n\r\nHowever, thankfully, the Javassist package has been updated more recently to handle Java 7. \r\n\r\nCan you please update and let us know your results?"}}