Skip to content

Cannot compare (.equals) various context implementaations #1754

@toddbaert

Description

@toddbaert

A user reported an issue where they cannot compare instances of EvaluationContext as expected. This came about with our recent introduction of the LayeredEvaluationContext.

I guess we cannot rely on evaluation context equality anymore but have to e.g. rely on its asMap equality.

This isn't strictly a bug, since I don't think we ever specified this behavior, but I think it should be easy to implement and nice-to-have.

I think we should override .hashcode etc to enable this sort of thing, and add tests to prevent regressions.

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