Skip to content

Problems with the use of allPropertyDo in the entity comparison #56

Description

@AntoninGoslin

We have a problem in our code due to a bug with allPropertyDo. We want to use it like this:

	aFamixEntity mooseDescription allPropertiesDo: [ :prop |
		isEquals := isEquals & (self compareEntity: aFamixEntity to: otherFamixEntity property: prop)
	].

Using it this way, we have some entities that are doubled, so we have differences that are detected twice. So we are obliged to use allProperties to filter doubled entities , and then use do:

	aFamixEntity mooseDescription allProperties do: [ :prop |
		isEquals := isEquals & (self compareEntity: aFamixEntity to: otherFamixEntity property: prop)
	].

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions