Skip to content

Regression with immutable POJO, @JsonIdentityInfo, for 3.0 #5262

Closed

Description

@cowtowncoder

Fix for #5238 (see #5239) exposes a problem with POJO case, for 3.0 -- see JsonIdentityOnRecord5238Test.java for failure:

[ERROR]   JsonIdentityOnRecord5238Test.testIdentityWithPojo:58 » Databind Invalid Object Id definition for `tools.jackson.databind.records.JsonIdentityOnRecord5238Test$ThingPojo`: cannot find property with name 'id'
 at [No location information] (through reference chain: tools.jackson.databind.records.JsonIdentityOnRecord5238Test$ExamplePojo["allThings"]->java.util.ImmutableCollections$List12[0])
[INFO] 

Hopefully can be resolved; or if not immediately, need to move under tofix tests.

Activity

  1. added a commit that references this issue on Aug 19, 2025
  2. cowtowncoder commented on Aug 19, 2025

    @cowtowncoder
    MemberAuthor

    Will move under "tofix" in #5264.

  3. JooHyukKim commented on Aug 29, 2025

    @JooHyukKim
    Member

    Seems like prop id gets renamed at this point as prefixId declared in @JsonCreator.
    Here POJOPropertiesBuilder.findExplicitNames() returns prefixId.

    It's not supposed to tho right? @cowtowncoder

    Image
  4. cowtowncoder commented on Sep 6, 2025

    @cowtowncoder
    MemberAuthor

    Re-reading test case, I think test is actually invalid: rename as "prefixId" seems Wrong.

    Will fix the test instead.

  5. added this to the 3.0.0-rc9 milestone on Sep 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions