Skip to content

Conversation

soc
Copy link
Contributor

@soc soc commented Oct 3, 2014

@serialversionuid is special-cased, the warning doesn't apply.

Related to SI-7041.

@scala-jenkins scala-jenkins added this to the 2.11.3 milestone Oct 3, 2014
else restrictionWarning(cdef.pos, unit,
// Ignore @SerialVersionUID, because it is special-cased and handled completely differently.
// It only extends ClassfileAnnotationClass instead of StaticAnnotation to get the enforcement
// of constant argument values "for free".
Copy link
Member

Choose a reason for hiding this comment

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

Could you add a reference to SI-7041 in the comment?

@gkossakowski
Copy link
Contributor

@soc, will you have a chance to fix the comment today? Would like to 🚢 this as part of 2.11.3 release.

@xeno-by
Copy link
Contributor

xeno-by commented Oct 7, 2014

🚢 for the win :D

@serialversionuid is special-cased, the warning doesn't apply.

Related to SI-7041.
@soc
Copy link
Contributor Author

soc commented Oct 7, 2014

@lrytz @gkossakowski @xeno-by Done.

@gkossakowski
Copy link
Contributor

Oh wow! I didn't realize that there's a long history behind this change. Before I start digging I may ask @lrytz for opinion.

@lrytz
Copy link
Member

lrytz commented Oct 7, 2014

LGTM! Thanks, @soc

gkossakowski added a commit that referenced this pull request Oct 7, 2014
@gkossakowski gkossakowski merged commit 382b33e into scala:2.11.x Oct 7, 2014
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.

5 participants