Skip to content

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

@AntoninGoslin

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)
	].

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions