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

review: fix: Use wildcard type in CtUnaryOperator get/setOperand #5399

Merged

Conversation

I-Al-Istannen
Copy link
Collaborator

Closes #5349

This breaks source compatibility for getOperand, if a user assigned it to anything but CtExpression<?> or a rawtype. Currently we just lie about the type which easily leads to heap pollution.

@I-Al-Istannen I-Al-Istannen force-pushed the fix/unary-operator-get-set-operand branch from 38fc609 to 4cb294f Compare August 27, 2023 20:19
@I-Al-Istannen I-Al-Istannen changed the title fix: Use wildcard type in CtUnaryOperator get/setOperand review: fix: Use wildcard type in CtUnaryOperator get/setOperand Aug 27, 2023
Copy link
Collaborator

@monperrus monperrus left a comment

Choose a reason for hiding this comment

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

Good, thanks @I-Al-Istannen

@monperrus monperrus merged commit 3dcff6a into INRIA:master Aug 28, 2023
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CtUnaryOperators getOperand and setOperand should return/set CtExpression<?>
3 participants