Skip to content

Conversation

@joaonmatos
Copy link
Contributor

Fixes code generation bug where adapters for sealed interfaces with empty subtypes generated invalid Java syntax: jsonb.properties("@type", )

  • Refactor property name handling to use LinkedHashSet to avoid duplicates
  • Convert to stream-based approach for cleaner code
  • Add test case for empty sealed interface subtypes

Fixes #410

Fixes code generation bug where adapters for sealed interfaces with empty
subtypes generated invalid Java syntax: jsonb.properties("@type", )

- Refactor property name handling to use LinkedHashSet to avoid duplicates
- Convert to stream-based approach for cleaner code
- Add test case for empty sealed interface subtypes

Fixes avaje#410
@SentryMan SentryMan added the bug Something isn't working label Aug 19, 2025
@SentryMan SentryMan added this to the 3.7 milestone Aug 19, 2025
@SentryMan SentryMan enabled auto-merge (squash) August 19, 2025 23:12
Copy link
Collaborator

@SentryMan SentryMan left a comment

Choose a reason for hiding this comment

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

Thanks for taking the time to contribute

@SentryMan SentryMan merged commit faea958 into avaje:main Aug 19, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error generating adapter for interface whose children have no fields

2 participants