Skip to content

Conversation

@cowtowncoder
Copy link
Member

@cowtowncoder cowtowncoder commented Nov 21, 2025

Possible fix for #5184: not really loving all special-casing but might help figure out cleaner fix.

@cowtowncoder cowtowncoder added the gen-ai PR created with Generative AI (whole or assisted) (or issue for which gen-ai seems suitable) label Nov 21, 2025
@JooHyukKim
Copy link
Member

JooHyukKim commented Nov 22, 2025

This PR seems to be meant #5184 ? 4 and 8 are flipped :) @cowtowncoder

@cowtowncoder cowtowncoder changed the title Potential fix for #5814 Potential fix for #5184 Nov 23, 2025
@cowtowncoder
Copy link
Member Author

Thank you @JooHyukKim -- you are right. FIxed. :)

@cowtowncoder cowtowncoder changed the title Potential fix for #5184 Potential fix for #5184 (Record ignoral) Nov 26, 2025
// @JsonIgnore that would conflict with record component properties.
// For example, a record with component "value" should not have its property ignored
// just because there's a non-accessor method "getValue()" marked with @JsonIgnore.
if (ignore && isRecordType() && !_forSerialization && !nameExplicit) {
Copy link
Member Author

Choose a reason for hiding this comment

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

This might be ok but...

// just because there's a non-accessor method "getValue()" marked with @JsonIgnore.
if (ignore && isRecordType() && !_forSerialization && !nameExplicit) {
// Only skip if this is NOT the actual record accessor method
if (_accessorNaming instanceof DefaultAccessorNamingStrategy.RecordNaming) {
Copy link
Member Author

Choose a reason for hiding this comment

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

This gets into too much special casing; need to have better knowledge of "true" Record properties.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gen-ai PR created with Generative AI (whole or assisted) (or issue for which gen-ai seems suitable)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants