Skip to content

fix #10884: eliminate JavaMethodType from exported info #10948

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 29, 2020

Conversation

bishabosha
Copy link
Member

@bishabosha bishabosha commented Dec 29, 2020

the issue is that we copy the info from a Java method when exporting, but that info may contain a MethodType with the JavaMethodType companion. This means that at ElimRepeated the export forwarder gets an Array vararg parameter, instead of Seq and so Exporter.varargExample("a", "b", "c") no longer has a well typed argument.

fixes #10884

@bishabosha bishabosha added this to the 3.0.0-RC1 milestone Dec 29, 2020
@bishabosha bishabosha merged commit b1dafb7 into scala:master Dec 29, 2020
@bishabosha bishabosha deleted the fix-10884 branch December 29, 2020 17:07
@Kordyjan Kordyjan modified the milestones: 3.0.0-RC1, 3.0.0 Aug 2, 2023
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.

Export vararg method from Java does not adapt Seq to array
3 participants