Skip to content

refactor: extract AgentExecutorProducer_v0_3 into separate test module#890

Draft
kabir wants to merge 3 commits into
a2aproject:mainfrom
kabir:jakarta-fixes-2
Draft

refactor: extract AgentExecutorProducer_v0_3 into separate test module#890
kabir wants to merge 3 commits into
a2aproject:mainfrom
kabir:jakarta-fixes-2

Conversation

@kabir
Copy link
Copy Markdown
Collaborator

@kabir kabir commented May 20, 2026

Move AgentExecutorProducer_v0_3 from compat-0.3/server-conversion
test-jar into a new compat-0.3/tests/server-common module to fix CDI
ambiguous dependency errors in downstream consumers that depend on both
the v0.3 and v1.0 test-jars.

#889 should be merged before this

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors several domain classes in the compat-0.3 package from standard classes to Java records, updates associated mappers and tests to use record accessors, and introduces a common test infrastructure module. The review feedback highlights several areas for improvement, including removing redundant null checks that are now covered by record constructors, ensuring immutability for lists, and using proper annotations for CDI proxying requirements.

Comment thread compat-0.3/spec/src/main/java/org/a2aproject/sdk/compat03/util/Utils_v0_3.java Outdated
@kabir kabir force-pushed the jakarta-fixes-2 branch from ee3267d to 34d9c44 Compare May 20, 2026 19:25
kabir and others added 2 commits May 20, 2026 20:32
This became apparent since in non-Quarkus environments you have to
set a bunch of JVM flags, and also introduce default constructors,
which in turn means making fields non-final.

Additionally, added default constructors for some CDI beans to work
in stricter CDI environments than Quarkus
Move AgentExecutorProducer_v0_3 from compat-0.3/server-conversion
test-jar into a new compat-0.3/tests/server-common module to fix CDI
ambiguous dependency errors in downstream consumers that depend on both
the v0.3 and v1.0 test-jars.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@kabir kabir force-pushed the jakarta-fixes-2 branch from 34d9c44 to fca0ef3 Compare May 20, 2026 19:33
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.

1 participant