if (VM.writingImage)
if (VM.runningVM) VM.sysWriteln(", while booting the VM"); else
  private final VM_Method resolveInternal(VM_Class declaringClass) {    if (!declaringClass.isResolved()) {      declaringClass.resolve();    }    for (VM_Class c = declaringClass; c != null; c = c.getSuperClass()) {      VM_Method it = c.findDeclaredMethod(name, descriptor);      if (it != null) {        resolvedMember = it;        return resolvedMember;      }    }    if (!VM.fullyBooted) {        VM.sysWrite("VM_MethodReference.resolveInternal():");        VM.sysWrite(" unable to find a method named ");        name.sysWrite();        VM.sysWrite(" with descriptor ");        descriptor.sysWrite();        VM.sysWrite(" in the class ");        declaringClass.getDescriptor().sysWrite();        if (VM.writingImage)          VM.sysWriteln(", while writing the boot image");        else          VM.sysWriteln(", while booting the VM");        VM.sysFail("VM_MethodReference.resolveInternal(): unable to resolve a method during VM booting.");    }    throw new NoSuchMethodError(this.toString());  }