sandbox/src/main/java/org/robolectric/internal/bytecode/InvokeDynamicClassInstrumentor.java
private void generateInvokeDynamic(MutableClass mutableClass, MethodNode originalMethod,
      String originalMethodName, RobolectricGeneratorAdapter generator) {
    Handle original =
        new Handle(getTag(originalMethod), mutableClass.classType.getInternalName(),
            originalMethod.name, originalMethod.desc);

    if (generator.isStatic()) {
      generator.loadArgs();
      generator.invokeDynamic(originalMethodName, originalMethod.desc, BOOTSTRAP_STATIC, original);
    } else {
      String desc = "(" + mutableClass.classType.getDescriptor() + originalMethod.desc.substring(1);
      generator.loadThis();
      generator.loadArgs();
      generator.invokeDynamic(originalMethodName, desc, BOOTSTRAP, original);
    }

    generator.returnValue();
  }
private void generateInvokeDynamic(MutableClass mutableClass, MethodNode originalMethod,
      String originalMethodName, RobolectricGeneratorAdapter generator) {
    Handle original =
        new Handle(getTag(originalMethod), mutableClass.classType.getInternalName(),
            originalMethod.name, originalMethod.desc);

    if (generator.isStatic()) {
      generator.loadArgs();
      generator.invokeDynamic(originalMethodName, originalMethod.desc, BOOTSTRAP_STATIC, original);
    } else {
      String desc = "(" + mutableClass.classType.getDescriptor() + originalMethod.desc.substring(1);
      generator.loadThis();
      generator.loadArgs();
      generator.invokeDynamic(originalMethodName, desc, BOOTSTRAP, original);
    }

    generator.returnValue();
  }
private void generateInvokeDynamic ( MutableClass mutableClass , MethodNode originalMethod , String originalMethodName , RobolectricGeneratorAdapter generator ) { Handle original = new Handle ( getTag ( originalMethod ) , mutableClass . classType . getInternalName ( ) , originalMethod . name , originalMethod . desc ) ; if ( generator . isStatic ( ) ) { generator . loadArgs ( ) ; generator . invokeDynamic ( originalMethodName , originalMethod . desc , BOOTSTRAP_STATIC , original ) ; } else { String desc = "(" + mutableClass . classType . getDescriptor ( ) + originalMethod . desc . substring ( 1 ) ; generator . loadThis ( ) ; generator . loadArgs ( ) ; generator . invokeDynamic ( originalMethodName , desc , BOOTSTRAP , original ) ; } generator . returnValue ( ) ; }
todo javadocs
todo javadocs