public static void finalizeOneClass(Stella_Class renamed_Class) {
    { Object old$Module$000 = Stella.$MODULE$.get();
      Object old$Context$000 = Stella.$CONTEXT$.get();

      try {
        Native.setSpecial(Stella.$MODULE$, renamed_Class.homeModule());
        Native.setSpecial(Stella.$CONTEXT$, ((Module)(Stella.$MODULE$.get())));
        if (((Symbol)(KeyValueList.dynamicSlotValue(renamed_Class.dynamicSlots, Stella.SYM_STELLA_CLASS_EXTENSION_NAME, null))) != null) {
          KeyValueList.setDynamicSlotValue(renamed_Class.dynamicSlots, Stella.SYM_STELLA_STORED_ACTIVEp, Stella.TRUE_WRAPPER, null);
        }
        Stella_Class.addDirectSupersBackLinks(renamed_Class);
        Stella_Class.inheritSuperclasses(renamed_Class);
        if ((((BooleanWrapper)(KeyValueList.dynamicSlotValue(renamed_Class.dynamicSlots, Stella.SYM_STELLA_STORED_ACTIVEp, null))) != null) &&
            BooleanWrapper.coerceWrappedBooleanToBoolean(((BooleanWrapper)(KeyValueList.dynamicSlotValue(renamed_Class.dynamicSlots, Stella.SYM_STELLA_STORED_ACTIVEp, null))))) {
          Stella_Class.activateClass(renamed_Class);
        }
        Stella_Class.addPrimaryType(renamed_Class);
        { Surrogate alias = null;
          Cons iter000 = renamed_Class.classSynonyms().theConsList;

          for (;!(iter000 == Stella.NIL); iter000 = iter000.rest) {
            alias = ((Surrogate)(iter000.value));
            if ((((Stella_Class)(alias.surrogateValue)) != null) &&
                ((!(((Stella_Class)(alias.surrogateValue)) == renamed_Class)) &&
                 (!Stella.stringEqlP(Stella_Class.className(((Stella_Class)(alias.surrogateValue))), Stella_Class.className(renamed_Class))))) {
              {
                Stella.STANDARD_WARNING.nativeStream.println("Warning: Alias `" + Symbol.internSymbolInModule(alias.symbolName, ((Module)(alias.homeContext)), true) + "' can't point to `" + Stella_Class.classSymbol(renamed_Class) + "' because it already points to ");
                Stella.STANDARD_WARNING.nativeStream.println("the class `" + Stella_Class.classSymbol(((Stella_Class)(alias.surrogateValue))) + "'.");
              }
;
            }
            else {
              alias.surrogateValue = renamed_Class;
            }
          }
        }
        if ((((Symbol)(KeyValueList.dynamicSlotValue(renamed_Class.dynamicSlots, Stella.SYM_STELLA_CLASS_EXTENSION_NAME, null))) != null) &&
            (((ClassExtension)(KeyValueList.dynamicSlotValue(renamed_Class.dynamicSlots, Stella.SYM_STELLA_CLASS_EXTENSION, null))) == null)) {
          KeyValueList.setDynamicSlotValue(renamed_Class.dynamicSlots, Stella.SYM_STELLA_CLASS_EXTENSION, ClassExtension.newClassExtension(), null);
        }
        HookList.runHooks(Stella.$FINALIZE_RELATION_HOOKS$, renamed_Class);
        renamed_Class.classFinalizedP = true;

      } finally {
        Stella.$CONTEXT$.set(old$Context$000);
        Stella.$MODULE$.set(old$Module$000);
      }
    }
  }