Skip to content

accept primitive.class in annotations#25363

Merged
SolalPirelli merged 1 commit into
scala:mainfrom
hamzaremmal:i19643
Feb 27, 2026
Merged

accept primitive.class in annotations#25363
SolalPirelli merged 1 commit into
scala:mainfrom
hamzaremmal:i19643

Conversation

@hamzaremmal

Copy link
Copy Markdown
Member

When we parse java code, we should also handle when int.class, byte.class,... (all primitives) are present in annotations. We used to discard them before.

How much have you relied on LLM-based tools in this contribution?

None.

Additional notes

Closes #19643

@SolalPirelli SolalPirelli merged commit 5dfd0cc into scala:main Feb 27, 2026
62 checks passed
@hamzaremmal hamzaremmal deleted the i19643 branch February 27, 2026 13:34
tgodzik added a commit to scala/scala3-lts that referenced this pull request Mar 20, 2026
When we parse java code, we should also handle when `int.class`,
`byte.class`,... (all primitives) are present in annotations. We used to
discard them before.

## How much have you relied on LLM-based tools in this contribution?

None.

## Additional notes

Closes scala#19643
[Cherry-picked 5dfd0cc][modified]
@WojciechMazur WojciechMazur added this to the 3.8.4 milestone Mar 31, 2026
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.

Java parser silently drops any annotation that has a primitive class as an argument

5 participants