-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix #8427: Disallow SerialVersionUID on a trait #8429
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
Conversation
I don't know if it's really not meaningful. |
It's not meaningful since it literally doesn't do anything (the bytecode is identical). I don't understand why akka would put it there and silence the warning instead of removing the annotation. |
serialVersionUID fields are only meaningful on a class, not an interface, see https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/io/Serializable.html
f14eec9
to
cd5bf83
Compare
cc @patriknw |
Could be for historical reasons. Maybe it was mixed in differently in Scala 2.10 or 2.11, or we simply misunderstood if it was of importance to have the annotation on the traits or not and sprinkled it in more places than need. |
No description provided.