public static void activateClass(Stella_Class renamed_Class) {
    { Stella_Class activeobjectclass = Surrogate.typeToClass(Stella.SGT_STELLA_ACTIVE_OBJECT);
      List supers = renamed_Class.classDirectSupers;

      if ((activeobjectclass != null) &&
          Stella_Class.subclassOfP(renamed_Class, activeobjectclass)) {
        return;
      }
      if (supers.length() == 0) {
        supers.insert(Stella.SGT_STELLA_ACTIVE_OBJECT);
      }
      else if ((supers.length() == 1) &&
          ((((Surrogate)(supers.first())) == Stella.SGT_STELLA_OBJECT) ||
           (((Surrogate)(supers.first())) == Stella.SGT_STELLA_STANDARD_OBJECT))) {
        Stella_Class.removeDirectSupersBackLinks(renamed_Class);
        supers.clear();
        supers.insert(Stella.SGT_STELLA_ACTIVE_OBJECT);
      }
      else {
        KeyValueList.setDynamicSlotValue(renamed_Class.dynamicSlots, Stella.SYM_STELLA_STORED_ACTIVEp, Stella.FALSE_WRAPPER, null);
        if (((Symbol)(KeyValueList.dynamicSlotValue(renamed_Class.dynamicSlots, Stella.SYM_STELLA_CLASS_EXTENSION_NAME, null))) != null) {
          KeyValueList.setDynamicSlotValue(renamed_Class.dynamicSlots, Stella.SYM_STELLA_CLASS_EXTENSION_NAME, null, null);
        }
        {
          Stella.STANDARD_WARNING.nativeStream.println("Warning: Cannot convert `" + renamed_Class + "' into an ACTIVE-OBJECT.");
          Stella.STANDARD_WARNING.nativeStream.println("You have to modify its superclasses by hand.");
        }
;
        return;
      }
      Stella_Class.addDirectSupersBackLinks(renamed_Class);
      Stella_Class.inheritSuperclasses(renamed_Class);
    }
  }