Skip to content

fix: Handle nested class names in annotation processor - #603

Merged
patriknw merged 2 commits into
agent-devfrom
wip-doc-snippets-patriknw
Jun 18, 2025
Merged

patriknw merged 2 commits into
agent-devfrom
wip-doc-snippets-patriknw

Conversation

@patriknw

Copy link
Copy Markdown
Contributor
  • and cleanup doc-snippets so that it can be run and tested

* and cleanup doc-snippets so that it can be run and tested
@github-actions github-actions Bot added documentation documentation related java-sdk labels Jun 18, 2025
elementsPerComponentType.forEach((componentType, elements) -> {
var classNames = new ArrayList<>(elements.stream().map(element -> element.getQualifiedName().toString()).toList());
var classNames = new ArrayList<>(elements.stream().map(element ->
processingEnv.getElementUtils().getBinaryName((TypeElement) element).toString()).toList());

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is the bug fix. getQualifiedName is using . as separator, but it should be $ for our purpose of loading the class

@patriknw
patriknw merged commit 3bc9f66 into agent-dev Jun 18, 2025
@patriknw
patriknw deleted the wip-doc-snippets-patriknw branch June 18, 2025 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation documentation related java-sdk

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants