Skip to content

Fix #7319: Properly support @serialVersionUID #7331

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
Sep 28, 2019

Conversation

smarter
Copy link
Member

@smarter smarter commented Sep 27, 2019

We need to emit a static serialVersionUID field when this annotation
is used, but we were missing the logic in DottyBackendInterface to
actually retrieve the value of the annotation. I also updated
BCodeHelpers to emit the field as private like scalac does since
scala/scala@7f20b1c

We need to emit a static `serialVersionUID` field when this annotation
is used, but we were missing the logic in DottyBackendInterface to
actually retrieve the value of the annotation. I also updated
BCodeHelpers to emit the field as private like scalac does since
scala/scala@7f20b1c

Test cases adapted from scalac.
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, I guess perhaps there should be a separate issue for passing inline vals to annotations

@bishabosha bishabosha merged commit 6c8b4b5 into scala:master Sep 28, 2019
@bishabosha bishabosha deleted the serialvuid branch September 28, 2019 22:03
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.

2 participants