You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a library developer I want Enso Atoms exposing structural equality when accessed from polyglot (Java) code So that I can use Java utilities like HashSet with Enso Atoms and get expectable results
Acceptance Criteria
Scenario:
GIVEN two structurally equal Enso Atoms
WHEN they are passed through a Polyglot boundary and the Java `.equals` function is called to compare them
THEN it should return `true` as expected; moreover the exposed `hashCode` implementation should also be consistent with the `equals` method (as described in `Object` javadoc - o1.equals(o2) must imply that `o1.hashCode() == o2.hashCode()`)
Additional Notes
Once this is implemented, the pending test relying on this behaviour should be re-enabled.
The relevant test is should correctly handle distinct with custom types like Atoms located in test/Tests/src/Data/Vector_Spec.enso.
This task is automatically imported from the old Task Issue Board and it was originally created by Radosław Waśko.
Original issue is here.
Team
Technical Designer: ...
Implementer: ...
Acceptance/QA: ...
Why
As a library developer
I want Enso Atoms exposing structural equality when accessed from polyglot (Java) code
So that I can use Java utilities like HashSet with Enso Atoms and get expectable results
Acceptance Criteria
Additional Notes
Once this is implemented, the pending test relying on this behaviour should be re-enabled.
The relevant test is
should correctly handle distinct with custom types like Atoms
located intest/Tests/src/Data/Vector_Spec.enso
.Comments:
A scenario to test this can be:
with the following Java file packaged into a JAR and put into
/polyglot/java/
directory inside of the Enso project:The text was updated successfully, but these errors were encountered: