title: Powermock-Failed to transform class with name...ArrayIndexOutOfBoundsException: 3
body: <p><br/>
  I'm trying to run a junit test. <br/></p>
  
  <p>i'm using: junit 4.10, <br/>
              easymock 3.0, <br/>
              powermock-core 1.4.10 (uses javassist 3.15.0-GA), <br/>
              powermock-module-junit4 1.4.10, <br/>
              powermock-api-easymock 1.4.10<br/>
   with all the appropriate dependencies.<br/>
   I have also try with powermock-core 1.5.5(javassist 3.18.0-GA)<br/></p>
  
  <p>(please note that only one more dependency ognl (uses javassist 3.7.ga)
   <br/></p>
  
  <p><strong>test class:</strong></p>
  
  <pre><code>@RunWith(PowerMockRunner.class)
  @PrepareForTest({MyClassToBeTested.class})
  public class MyClassToBeTestedTest{
      private MyClassToBeTested myClassToBeTested;
      @Before
      public void setUp() {
          // Partial mock with powermock
          myClassToBeTested = PowerMock.createPartialMock(MyClassToBeTested.class, "testMethod");
      }
      @Test                         // IF I COMMENT THE @Test ANNOTATION AND 
      public void testMethod() {    // ALSO THE testMethod() THERE IS NO EXCEPTION
      }
  }
  </code></pre>
  
  <p><br/>
   <strong>stack trace:</strong> </p>
  
  <pre><code>[junit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0,08 sec
   [junit]
   [junit] Testcase: initializationError(com.myProject.MyClassToBeTested): Caused an ERROR
   [junit] Failed to transform class with name com.myProject.MyClassToBeTested. Reason: 3
   [junit] java.lang.IllegalStateException: Failed to transform class with name com.myProject.MyClassToBeTested. Reason: 3
   [junit]     at org.powermock.core.classloader.MockClassLoader.loadMockClass(MockClassLoader.java:207)
   [junit]     at org.powermock.core.classloader.MockClassLoader.loadModifiedClass(MockClassLoader.java:145)
   [junit]     at org.powermock.core.classloader.DeferSupportingClassLoader.loadClass(DeferSupportingClassLoader.java:65)
   [junit]     at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
   [junit]     at java.lang.Class.forName0(Native Method)
   [junit]     at java.lang.Class.forName(Class.java:249)
   [junit]     at org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl.createDelegatorFromClassloader(JUnit4TestSuiteChunkerImpl.java
  3)
   [junit]     at org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl.createDelegatorFromClassloader(JUnit4TestSuiteChunkerImpl.java
  )
   [junit]     at org.powermock.tests.utils.impl.AbstractTestSuiteChunkerImpl.createTestDelegators(AbstractTestSuiteChunkerImpl.java:217)
   [junit]     at org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl.&lt;init&gt;(JUnit4TestSuiteChunkerImpl.java:59)
   [junit]     at org.powermock.modules.junit4.common.internal.impl.AbstractCommonPowerMockRunner.&lt;init&gt;(AbstractCommonPowerMockRunner.java:32)
   [junit]     at org.powermock.modules.junit4.PowerMockRunner.&lt;init&gt;(PowerMockRunner.java:26)
   [junit]     at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
   [junit]     at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
   [junit] Caused by: java.lang.ArrayIndexOutOfBoundsException: 3
   [junit]     at javassist.bytecode.ByteArray.write16bit(ByteArray.java:40)
   [junit]     at javassist.bytecode.StackMapTable$Shifter.update(StackMapTable.java:744)
   [junit]     at javassist.bytecode.StackMapTable$Shifter.sameFrame(StackMapTable.java:720)
   [junit]     at javassist.bytecode.StackMapTable$Walker.stackMapFrames(StackMapTable.java:194)
   [junit]     at javassist.bytecode.StackMapTable$Walker.parse(StackMapTable.java:179)
   [junit]     at javassist.bytecode.StackMapTable$Shifter.doit(StackMapTable.java:714)
   [junit]     at javassist.bytecode.StackMapTable.shiftPc(StackMapTable.java:693)
   [junit]     at javassist.bytecode.CodeIterator.insertGap0(CodeIterator.java:676)
   [junit]     at javassist.bytecode.CodeIterator.insertGap(CodeIterator.java:636)
   [junit]     at javassist.bytecode.CodeIterator.insertGapCore(CodeIterator.java:467)
   [junit]     at javassist.bytecode.CodeIterator.insertGap(CodeIterator.java:413)
   [junit]     at javassist.expr.Expr.replace0(Expr.java:298)
   [junit]     at javassist.expr.FieldAccess.replace(FieldAccess.java:213)
   [junit]     at org.powermock.core.transformers.impl.MainMockTransformer$PowerMockExpressionEditor.edit(MainMockTransformer.java:267)
   [junit]     at javassist.expr.ExprEditor.loopBody(ExprEditor.java:197)
   [junit]     at javassist.expr.ExprEditor.doit(ExprEditor.java:90)
   [junit]     at javassist.CtClassType.instrument(CtClassType.java:1289)
   [junit]     at org.powermock.core.transformers.impl.MainMockTransformer.transform(MainMockTransformer.java:75)
   [junit]     at org.powermock.core.classloader.MockClassLoader.loadMockClass(MockClassLoader.java:203)
  </code></pre>
  
  <p>thank you for any given advice...</p>