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: Crashes when records contained static fields #6095

Merged

Conversation

I-Al-Istannen
Copy link
Collaborator

Spoon tried to remove the field to prevent record field duplication. This fails for static fields, which do not exist (yet). For these, spoon passed null to the remove method, which failed with an exception. We now check for the modifier and null explicitly.

Reported by @Luro02.

Spoon tried to remove the field to prevent record field duplication.
This fails for static fields, which do not exist (yet). For these, spoon
passed null to the remove method, which failed with an exception. We now
check for the modifier and null explicitly.
@I-Al-Istannen I-Al-Istannen force-pushed the fix/crash-with-record-static-fields branch from 5371823 to b546253 Compare December 9, 2024 11:49
@I-Al-Istannen I-Al-Istannen changed the title fix: Crashes when records contained static fields review: fix: Crashes when records contained static fields Dec 9, 2024
Copy link
Collaborator

@SirYwell SirYwell left a comment

Choose a reason for hiding this comment

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

Looks good.

@SirYwell SirYwell merged commit f57bf23 into INRIA:master Dec 11, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants