Skip to content

Pharo crashes if a slot has a bug during class migration #19359

@jecisc

Description

@jecisc

In Moose we have FMOne and FMMany slots that keep a bidirectional relation between what is in the slot.

The problem is that if we remove a slot, it migrates the instances and when we try to migrate the slots, an error happens because the opposite slot is not there anymore. And the error causes Pharo to just crash when we close the debugger.

I see two things to do here:

  • The class builder should not crash the image if a slot raises an error during migration
  • We should have a way in slots to do an alternative writing when we are in a class migration. In this case, we would not try to maintain the bidirectional relation since it already exists.

What do you think @MarcusDenker?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions