Skip to content

Conversation

@som-snytt
Copy link
Contributor

@som-snytt som-snytt commented Jan 8, 2026

Fixes #22991

MixinOps#mkForwardSym also copies annotations for forwarders, but not yet for parameters.

New paramss must be reconstituted, and to these, annotations are copied from the member params "before transforms"; since that includes type params, those are filtered out.

@som-snytt som-snytt force-pushed the review/22991-24892-mixin-param-annots branch from 1e530e2 to daf27b4 Compare January 8, 2026 07:35
Copy link

@ecrabor8 ecrabor8 left a comment

Choose a reason for hiding this comment

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

As far as I understand, this looks good and combines retaining method annotations and method parameter annotations in the mixin phase. If the test case passes go for it.

@som-snytt som-snytt force-pushed the review/22991-24892-mixin-param-annots branch from daf27b4 to 6ac64bb Compare January 8, 2026 18:29
@som-snytt som-snytt marked this pull request as ready for review January 9, 2026 00:25
@Gedochao Gedochao requested a review from sjrd January 13, 2026 09:57
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.

Trait method parameter annotated with RetentionPolicy.RUNTIME annotation is not indicated in .class file for the method parameter

3 participants