Fix #1516: Support @JsonManagedReference/@JsonBackReference for property-based creators
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].
@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;
}
:test_tube: Code Coverage Report
| Metric | Coverage | Change |
|---|---|---|
| Instructions | 📈 +0.100% | |
| Branches | 📈 +0.000% |
Coverage data generated from JaCoCo test results
Looks promising: I'll try to review soon -- next PR on my list to handle.
:test_tube: Code Coverage Report
| Metric | Coverage | Change |
|---|---|---|
| Instructions | 📈 +0.100% | |
| Branches | 📈 +0.000% |
Coverage data generated from JaCoCo test results
:test_tube: Code Coverage Report
| Metric | Coverage | Change |
|---|---|---|
| Instructions | 📈 +0.100% | |
| Branches | 📈 +0.000% |
Coverage data generated from JaCoCo test results
:test_tube: Code Coverage Report
| Metric | Coverage | Change |
|---|---|---|
| Instructions | 📈 +0.100% | |
| Branches | 📈 +0.000% |
Coverage data generated from JaCoCo test results
:test_tube: Code Coverage Report
| Metric | Coverage | Change |
|---|---|---|
| Instructions | 📈 +0.100% | |
| Branches | 📈 +0.000% |
Coverage data generated from JaCoCo test results
:test_tube: Code Coverage Report
| Metric | Coverage | Change |
|---|---|---|
| Instructions | 📈 +0.100% | |
| Branches | 📈 +0.000% |
Coverage data generated from JaCoCo test results
:test_tube: Code Coverage Report
| Metric | Coverage | Change |
|---|---|---|
| Instructions | 📈 +0.100% | |
| Branches | 📈 +0.000% |
Coverage data generated from JaCoCo test results