Skip to content

Conversation

@nicolasstucki
Copy link
Contributor

The current version returns "TupleXXL" which leaks erasure details.
From the user perspective, any tuple lager than 2 is of type Tuple
which is a Product. Therefore the productPrefix should be Tuple.

The current version returns `"TupleXXL"` which leaks erasure details.
From the user perspective, any tuple lager than 2 is of type `Tuple`
which is a `Product`. Therefore the `productPrefix` should be `Tuple`.
@nicolasstucki
Copy link
Contributor Author

Note that the TupleXXL.toString is overridden and does not use the productPrefix. Only user code explicitly calling productPrefix would see this change.

@nicolasstucki nicolasstucki added the release-notes Should be mentioned in the release notes label Jun 9, 2022
@nicolasstucki nicolasstucki marked this pull request as ready for review June 9, 2022 12:03
@nicolasstucki nicolasstucki requested a review from bishabosha June 9, 2022 12:03
@bishabosha bishabosha merged commit aa5ea92 into scala:main Jun 9, 2022
@bishabosha bishabosha deleted the fix-TupleXXL-productPrefix branch June 9, 2022 12:10
@Kordyjan Kordyjan added this to the 3.2.0 milestone Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-notes Should be mentioned in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants