-
Notifications
You must be signed in to change notification settings - Fork 21
scalac 2.11 regression. Scalac is not honouring the SerialVersionUID annotation #8549
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
Comments
Imported From: https://issues.scala-lang.org/browse/SI-8549?orig=1 |
@oxbowlakes said:
But with 2.11
|
@retronym said: |
@oxbowlakes said: |
@retronym said: I am leaning towards retrofitting. I believe I can automate the process so we don't miss any. |
@paulp said: |
@oxbowlakes said: Also note that for any non-trivial scala project which uses serialization, then doing trying to make SerialUIDs consistent in the scala library between 2.11.0/1 is pretty useless unless all library dependencies (which include serialized classes) also follow this route. For example, if I'm using akka, an ActorRef is serializable (see SerializedActorRef at https://github.com/akka/akka/blob/master/akka-actor/src/main/scala/akka/actor/ActorRef.scala): they may have to do exactly the same. It seems unlikely that all my dependencies are going to "fix" their codebase's Serial IDs, so it's really unlikely that my non-trivial scala project is actually going to end up being really binary+serialization-compatible for 2.11.0/1. |
@retronym said: |
@retronym said: |
Compiling this code:
using 2.10 and then running the following:
Will print
public static final long test.Ser.serialVersionUID
However, compiling the same with 2.11 gives a NoSuchFIeldException
The text was updated successfully, but these errors were encountered: