docs: public void updateAssociations(JMFType type) {
      super.updateAssociations(type);
      if (getCaseCount() != ((JSVariant)type).getCaseCount())
        throw new IllegalStateException();
      if (cases != null)
        for (int i = 0; i < cases.length; i++)
           cases[i].updateAssociations(((JSVariant)type).getCase(i));
    }