refactor: extract AgentExecutorProducer_v0_3 into separate test module by kabir · Pull Request #890 · a2aproject/a2a-java · GitHub
Skip to content

refactor: extract AgentExecutorProducer_v0_3 into separate test module - #890

Merged
kabir merged 3 commits into
a2aproject:mainfrom
kabir:jakarta-fixes-2
May 28, 2026
Merged

kabir merged 3 commits into
a2aproject:mainfrom
kabir:jakarta-fixes-2

Conversation

@kabir

@kabir kabir commented May 20, 2026 •

Copy link
Copy Markdown
Collaborator

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

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

Copy link
Copy Markdown
Contributor

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/spec/Message_v0_3.java Outdated
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 3 times, most recently from 5d9c42b to 518865b Compare May 26, 2026 15:30
@kabir
kabir marked this pull request as ready for review May 26, 2026 15:30
@kabir
kabir force-pushed the jakarta-fixes-2 branch 3 times, most recently from b99d4be to 0d7a646 Compare May 27, 2026 10:36
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 0d7a646 to ea00d16 Compare May 27, 2026 14:27
ehsavoie and others added 2 commits May 27, 2026 19:57
Signed-off-by: Emmanuel Hugonnet <ehugonne@redhat.com>
Avoiding creating an empty jar file
@kabir
kabir merged commit 813c013 into a2aproject:main May 28, 2026
11 checks passed
salaboy pushed a commit to salaboy/a2a-java that referenced this pull request Jun 19, 2026
a2aproject#890)

* refactor: extract AgentExecutorProducer_v0_3 into separate test module

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>

* Avoiding creating an empty jar file

Signed-off-by: Emmanuel Hugonnet <ehugonne@redhat.com>

---------

Signed-off-by: Emmanuel Hugonnet <ehugonne@redhat.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Emmanuel Hugonnet <ehugonne@redhat.com>
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.

2 participants