diff options
author | Lukas Rytz <lukas.rytz@gmail.com> | 2014-11-05 12:10:16 +0100 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@gmail.com> | 2014-11-05 16:02:35 +0100 |
commit | 21a44fee3e92817eed3d002c839b62f5e1281200 (patch) | |
tree | 8a4739086cbaad471b7dfc5f1bb186dd8dda930c /test/files/run/t6555.check | |
parent | b556b2fdcc7198bffe0ee90c5adc8c9eb3c29e36 (diff) | |
download | scala-21a44fee3e92817eed3d002c839b62f5e1281200.tar.gz scala-21a44fee3e92817eed3d002c839b62f5e1281200.tar.bz2 scala-21a44fee3e92817eed3d002c839b62f5e1281200.zip |
SI-8960 Bring back the SerialVersionUID to anonymous function classes
In PR #1673 / 4267444, the annotation `SerialVersionId` was changed
from a `StaticAnnotation` to `ClassFileAnnotation` in order to enforce
annotation arguments to be constants. That was 2.11.0.
The ID value in the AnnotationInfo moved from `args` to `assocs`, but
the backend was not adjusted. This was fixed in PR #3711 / ecbc9d0 for
2.11.1.
Unfortunately, the synthetic AnnotationInfo that is added to anonymous
function classes still used the old constructor (`args` instead of
`assocs`), so extracting the value failed, and no field was added to
the classfile.
Diffstat (limited to 'test/files/run/t6555.check')
-rw-r--r-- | test/files/run/t6555.check | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/run/t6555.check b/test/files/run/t6555.check index 9ac115a13f..e3b467ce7c 100644 --- a/test/files/run/t6555.check +++ b/test/files/run/t6555.check @@ -6,7 +6,7 @@ package <empty> { () }; private[this] val f: Int => Int = { - @SerialVersionUID(0) final <synthetic> class $anonfun extends scala.runtime.AbstractFunction1$mcII$sp with Serializable { + @SerialVersionUID(value = 0) final <synthetic> class $anonfun extends scala.runtime.AbstractFunction1$mcII$sp with Serializable { def <init>(): <$anon: Int => Int> = { $anonfun.super.<init>(); () |