Skip to content

Conversation

@SentryMan
Copy link
Collaborator

properly read all the meta annotations

@SentryMan SentryMan added this to the 3.4 milestone Apr 29, 2025
@SentryMan SentryMan requested a review from rbygrave April 29, 2025 01:42
@SentryMan SentryMan self-assigned this Apr 29, 2025
@SentryMan SentryMan enabled auto-merge April 29, 2025 01:42
properly read all the meta annotations
@SentryMan SentryMan force-pushed the refine-pkg-private branch from 3fb3c25 to f918d1e Compare April 29, 2025 02:54
@rbygrave rbygrave changed the title tidy component reader Properly read all the meta annotations for package private components Apr 29, 2025
.findFirst()
.orElseThrow();

return firstAdapter.getModifiers().contains(Modifier.PUBLIC);
Copy link
Contributor

Choose a reason for hiding this comment

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

This matches the existing logic ... but to me isn't quite correct. It would fail if there is a Factory (generic type) but NO normal adapter (for non-generic type).

So I think there should be a followup that addresses that.

.forEach(componentMetaData::add);
.forEach(meta::add);

} else if (metaDataFactory != null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like an existing bug here ... this ONLY adds factories if there isn't MetaData but there will commonly be both @MetaData and @MetaData.JsonFactory

@SentryMan SentryMan merged commit 2d68039 into avaje:main Apr 29, 2025
5 checks passed
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.

3 participants