Skip to content

feat!: Convert spec classes to records#889

Draft
kabir wants to merge 1 commit into
a2aproject:mainfrom
kabir:jakarta-fixes
Draft

feat!: Convert spec classes to records#889
kabir wants to merge 1 commit into
a2aproject:mainfrom
kabir:jakarta-fixes

Conversation

@kabir
Copy link
Copy Markdown
Collaborator

@kabir kabir commented May 20, 2026

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

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 performs a significant refactoring of the v0.3 compatibility layer, primarily converting domain objects like Task, Message, and various SecurityScheme implementations from standard classes to Java records. This change necessitates updating method calls from getter-style to accessor-style across the entire module, including transport layers and test suites. The refactor also includes converting Part_v0_3 into a sealed interface, updating serialization logic in JsonUtil_v0_3, and adding no-args constructors to specific handlers to maintain CDI compliance. I have no feedback to provide as there were no review comments to assess.

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
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