Skip to content

Fix Javadoc for Jackson2ObjectMapperFactoryBean [SPR-13765] #18339

Closed
@spring-projects-issues

Description

@spring-projects-issues

umesha balasubramaniam opened SPR-13765 and commented

The javadoc for Jackson2ObjectMapperFactoryBean has an error when it describes the how to set the featuresEnabled property. The documentation incorrectly describes using the $ syntax to refer to the enum value:

<util:constant static-field="com.fasterxml.jackson.databind.SerializationFeature$WRAP_ROOT_VALUE"/>
<util:constant static-field="com.fasterxml.jackson.databind.SerializationFeature$CLOSE_CLOSEABLE"/>
<util:constant static-field="com.fasterxml.jackson.databind.MapperFeature$USE_ANNOTATIONS"/>

It should use the dot syntax:

<util:constant static-field="com.fasterxml.jackson.databind.SerializationFeature.WRAP_ROOT_VALUE"/>
<util:constant static-field="com.fasterxml.jackson.databind.SerializationFeature.CLOSE_CLOSEABLE"/>
<util:constant static-field="com.fasterxml.jackson.databind.MapperFeature.USE_ANNOTATIONS"/>

Affects: 3.2.15, 4.1.8, 4.2.3

Reference URL: http://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/http/converter/json/Jackson2ObjectMapperFactoryBean.html#setFeaturesToEnable-java.lang.Object...-

Referenced from: commits 242acda, 1585a82, f7031df

Backported to: 4.1.9, 3.2.16

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)status: backportedAn issue that has been backported to maintenance branchestype: taskA general task

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions