Skip to content

Scala2Unpickler: Fix annotation argument handling #14334

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
Jan 27, 2022

Conversation

smarter
Copy link
Member

@smarter smarter commented Jan 24, 2022

When an annotation argument is an Array, we can't know the element type
of the Array until we've applied the argument to the annotation
constructor, so we need to unpickle annotation arguments as untyped
trees and rely on resolveConstructor to type them. This is the same
logic we already use when unpickling Java classfiles since
610450f.

Fixes #14223.

When an annotation argument is an Array, we can't know the element type
of the Array until we've applied the argument to the annotation
constructor, so we need to unpickle annotation arguments as untyped
trees and rely on resolveConstructor to type them. This is the same
logic we already use when unpickling Java classfiles since
610450f.

Fixes scala#14223.
@smarter smarter force-pushed the fix-scala2-arrayannotarg branch from 34de342 to e43eb18 Compare January 24, 2022 19:41
@smarter smarter requested a review from bishabosha January 25, 2022 12:02
Copy link
Member

@bishabosha bishabosha left a comment

Choose a reason for hiding this comment

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

lgtm

@bishabosha bishabosha merged commit 3c82006 into scala:master Jan 27, 2022
@bishabosha bishabosha deleted the fix-scala2-arrayannotarg branch January 27, 2022 15:45
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.

Failure to parse array annotation argument from Scala 2 dependency
2 participants