Skip to content

Conversation

@miberss
Copy link
Contributor

@miberss miberss commented Aug 24, 2025

This PR ensures that single Object fields in ExprFieldAccess#acceptChange are always accepted as Object.class.

Fixes #18

Comment on lines 180 to 184
// if a field is single and object, it should allow object stuff
if (isAnyFieldSingle && returnType == Object.class) {
return new Class<?>[]{Object.class};
}

Copy link
Owner

Choose a reason for hiding this comment

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

i'd move this under the existing isAnyFieldSingle check but otherwise seems fine

@sovdeeth sovdeeth added the bug Something isn't working label Aug 25, 2025
@miberss miberss requested a review from sovdeeth August 25, 2025 18:55
Copy link
Owner

@sovdeeth sovdeeth left a comment

Choose a reason for hiding this comment

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

thanks!

@sovdeeth sovdeeth merged commit 234bb6d into sovdeeth:main Aug 27, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ADD/REMOVE changers with object type

2 participants