private static int resolveMethodRefOffset(ConstantPool constantPool,Class<?> lambdaType){
  int offset=METHOD_REF_OFFSET;
  if (offset == -1) {
    int constantPoolSize=constantPool.getSize();
    for (int i=0; i < constantPoolSize; i++) {
      try {
        constantPool.getMemberRefInfoAt(constantPoolSize - i);
        offset=i;
        break;
      }
 catch (      IllegalArgumentException ignore) {
      }
    }
    METHOD_REF_OFFSET=offset;
  }
  if (offset >= 0)   return offset;
 else   throw new MethodRefOffsetResolutionFailed();
}

private static int resolveMethodRefOffset ( ConstantPool constantPool , Class < ? > lambdaType ) { int offset = METHOD_REF_OFFSET ; if ( offset == - 1 ) { int constantPoolSize = constantPool . getSize ( ) ; for ( int i = 0 ; i < constantPoolSize ; i ++ ) { try { constantPool . getMemberRefInfoAt ( constantPoolSize - i ) ; offset = i ; break ; } catch ( IllegalArgumentException ignore ) { } } METHOD_REF_OFFSET = offset ; } if ( offset >= 0 ) return offset ; else throw new MethodRefOffsetResolutionFailed ( ) ; }
resolves method ref offset .
