Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid exposing EnsoMultiValue getters #11642

Merged
merged 3 commits into from
Nov 25, 2024
Merged

Conversation

JaroslavTulach
Copy link
Member

@JaroslavTulach JaroslavTulach commented Nov 25, 2024

Pull Request Description

Another step in the #11482 work. Avoid accessing internals of EnsoMultiValue. Use TypeOfNode methods (as provided by #11618) instead.

Checklist

Please ensure that the following checklist has been satisfied before submitting the PR:

  • All code follows the
    Scala,
    Java,
  • Unit tests have been written where possible.

@JaroslavTulach JaroslavTulach added the CI: No changelog needed Do not require a changelog entry for this PR. label Nov 25, 2024
@JaroslavTulach JaroslavTulach self-assigned this Nov 25, 2024
@@ -137,7 +137,7 @@ static UnresolvedSymbol toDisplayText(Object payload, IndirectInvokeMethodNode p
}
} catch (Error | Exception e) {
logger().atError().log("Cannot compute message for " + payload, e);
throw UnsupportedMessageException.create(e);
throw UnsupportedMessageException.create(e instanceof AbstractTruffleException ? e : null);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The c2f48f1 change should fix this error - e.g. regular UnsupportedMessageException without any connection to the e will be thrown. The actual e exception will only be sent to:

logger().atError().log("Cannot compute message for " + payload, e);

will we find the stacktrace of the AssertionError e in the CI output?

@JaroslavTulach JaroslavTulach added the CI: Ready to merge This PR is eligible for automatic merge label Nov 25, 2024
@mergify mergify bot merged commit 1cc3848 into develop Nov 25, 2024
46 checks passed
@mergify mergify bot deleted the wip/jtulach/UseTypeOfNode11482 branch November 25, 2024 13:14
hubertp pushed a commit that referenced this pull request Nov 26, 2024
Another step in the #11482 work. Avoid accessing internals of `EnsoMultiValue`. Use `TypeOfNode` methods (as provided by #11618) instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI: No changelog needed Do not require a changelog entry for this PR. CI: Ready to merge This PR is eligible for automatic merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants