-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
RecordIssue related to JDK17 java.lang.Record supportIssue related to JDK17 java.lang.Record support
Milestone
Description
Version information
2.12.1
OpenJDK 15.0.1
To Reproduce
Given:
public final record GetLocations(@JsonValue Map<String, URI> nameToLocation)
{
@JsonCreator
public GetLocations(Map<String, URI> nameToLocation)
{
assertThat(nameToLocation, "nameToLocation").isNotNull();
this.nameToLocation = new HashMap<>(nameToLocation);
}
}
I am expecting Jackson to serialize the Map
to JSON but instead I get the following exception:
Problem with definition of [AnnotedClass GetLocations]: Multiple 'as-value' properties defined ([field GetLocations#nameToLocation] vs [method GetLocations#nameToLocation()])
kalaider, dzoech, lbuffler, achaphiv, dhoepelman and 2 more
Metadata
Metadata
Assignees
Labels
RecordIssue related to JDK17 java.lang.Record supportIssue related to JDK17 java.lang.Record support