Skip to content

[ISSUE #14466] Remove Jackson JavaType from rest template#15369

Merged
KomachiSion merged 1 commit into
alibaba:developfrom
KomachiSion:codex/jackson-rest-template-type
Jun 17, 2026
Merged

[ISSUE #14466] Remove Jackson JavaType from rest template#15369
KomachiSion merged 1 commit into
alibaba:developfrom
KomachiSion:codex/jackson-rest-template-type

Conversation

@KomachiSion

Copy link
Copy Markdown
Collaborator

Motivation\nPart of the Jackson 2 / Jackson 3 adapter migration for issue #14466. This step removes the direct Jackson JavaType usage from common HTTP response handler selection.\n\n### Modifications\n- Replace JacksonUtils.constructJavaType(responseType).getRawClass() in AbstractNacosRestTemplate with JDK Type raw-class resolution.\n- Preserve response handler selection for Class and ParameterizedType response types.\n- Add tests for parameterized RestResult, custom parameterized response types, and unsupported Type fallback.\n- Update docs/jackson-json-adapter-migration-todo.md with stage 6 status and validation.\n\n### Verification\n- mvn -pl common spotless:apply\n- mvn -pl common spotless:check\n- mvn -pl common -am -Dtest=AbstractNacosRestTemplateTest -Dsurefire.failIfNoSpecifiedTests=false test\n- common/target/site/jacoco/jacoco.csv: AbstractNacosRestTemplate has LINE_MISSED=0\n- mvn -pl common apache-rat:check

Resolve response handler raw classes with JDK Type APIs instead of Jackson JavaType.

Add coverage for parameterized RestResult, custom parameterized responses, and unsupported Type fallback.

Assisted-by: Claude Code
@github-actions

Copy link
Copy Markdown

Thanks for your this PR. 🙏
Please check again for your PR changes whether contains any usage/api/configuration change such as Add new API , Add new configuration, Change default value of configuration.
If so, please add or update documents(markdown type) in docs/next/ for repository nacos-group/nacos-group.github.io


感谢您提交的PR。 🙏
请再次查看您的PR内容,确认是否包含任何使用方式/API/配置参数的变更,如:新增API新增配置参数修改默认配置等操作。
如果是,请确保在提交之前,在仓库nacos-group/nacos-group.github.io中的docs/next/目录下添加或更新文档(markdown格式)。

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 90.00000% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
.../common/http/client/AbstractNacosRestTemplate.java 90.00% 0 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

@KomachiSion KomachiSion merged commit 0028ad6 into alibaba:develop Jun 17, 2026
7 of 8 checks passed
@KomachiSion KomachiSion added this to the 3.3.0 milestone Jun 17, 2026
@KomachiSion KomachiSion deleted the codex/jackson-rest-template-type branch June 17, 2026 03:34
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.

Design a Jackson 2/3 Compatibility Adapter Layer for Nacos to Support Spring 4.x and AI Ecosystem

2 participants