Skip to content

Fix Java signatures for arrays of value classes#25631

Open
SolalPirelli wants to merge 3 commits intoscala:mainfrom
dotty-staging:solal/value-class-array-signature
Open

Fix Java signatures for arrays of value classes#25631
SolalPirelli wants to merge 3 commits intoscala:mainfrom
dotty-staging:solal/value-class-array-signature

Conversation

@SolalPirelli
Copy link
Copy Markdown
Contributor

Fixes #12189

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

not

How was the solution tested?

issue's test turned into a fully automated test

if (!unboxedVCs) jsig1(defn.ObjectType)
// TODO, but a few tests need fixing / disabling until a newer scalac is ingested,
// replace the next 2 lines with: if (vcBoxing == ValueClassBoxing.Box || sym == defn.UnitClass) jsig1(defn.boxedClass(sym).typeRef)
if (vcBoxing == ValueClassBoxing.Box) jsig1(defn.ObjectType)
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.

will create an issue for this if the PR is accepted

@SolalPirelli SolalPirelli marked this pull request as ready for review March 26, 2026 14:33
@SolalPirelli SolalPirelli requested a review from bishabosha March 26, 2026 14:33
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 generic signature for value class array is unboxed but descriptor is boxed

1 participant