Skip to content

Conversation

@JacksonJang
Copy link
Contributor

@JacksonJang JacksonJang commented Dec 9, 2025

Issue: #1516

I resolved the issue where @JsonManagedReference and @JsonBackReference annotations didn't work when used with property-based creators (@ConstructorProperties).

In addition, I added a test case in TestKotlinGithub129 to verify the fix.
This test is based on testGithub129() in TestGithub149 class from [jackson-module-kotlin].

@JacksonJang
Copy link
Contributor Author

JacksonJang commented Dec 9, 2025

@cowtowncoder
I added conditional logic to ManagedReferenceProperty._setBackReference() and consolidated duplicate code into a single shared method.
When you have a moment, please take a look.

if (value == null) {
  return;
}

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