if (!java.lang.JikesRVMSupport.getTypeForClass(C).isClassType())
VM_Type myType = java.lang.JikesRVMSupport.getTypeForClass(C); if (myType.isArrayType()) {  return new Class[] { VM_Type.JavaLangCloneableType.getClassForType(), VM_Type.JavaIoSerializableType.getClassForType() }; } else if (myType.isClassType()) { VM_Class[] interfaces  = myType.asClass().getDeclaredInterfaces(); Class[]    jinterfaces = new Class[interfaces.length]; for (int i = 0; i != interfaces.length; i++) jinterfaces[i] = interfaces[i].getClassForType(); return jinterfaces; } else {
  public static Class[] getInterfaces(Class C) {    if (!java.lang.JikesRVMSupport.getTypeForClass(C).isClassType())      return new Class[0];    VM_Class[] interfaces  = java.lang.JikesRVMSupport.getTypeForClass(C).asClass().getDeclaredInterfaces();    Class[]    jinterfaces = new Class[interfaces.length];    for (int i = 0; i != interfaces.length; i++)      jinterfaces[i] = interfaces[i].getClassForType();    return jinterfaces;  }