summaryrefslogtreecommitdiff
path: root/test/files/run/t8960.scala
Commit message (Collapse)AuthorAgeFilesLines
* Make t8960 pass under delambdafy:methodLukas Rytz2014-11-071-1/+7
| | | | | | | When using delambdafy:method, anonymous function classes are not currently specialized, as noted here: https://github.com/scala/scala/blob/f08e96571479552b103b15cc2d40ea5454999546/src/compiler/scala/tools/nsc/transform/Delambdafy.scala#L26
* SI-8960 Bring back the SerialVersionUID to anonymous function classesLukas Rytz2014-11-051-0/+66
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.