diff options
author | Philipp Haller <hallerp@gmail.com> | 2008-08-03 15:08:30 +0000 |
---|---|---|
committer | Philipp Haller <hallerp@gmail.com> | 2008-08-03 15:08:30 +0000 |
commit | 8b6a34df2ddd45e5c43f29d24d9039e6d5523f02 (patch) | |
tree | 040471ccb6f2d2ec05a6227793d286eaabb4fdab /src | |
parent | 82543fe499c17c19f62f956fc5bd91e700088dd8 (diff) | |
download | scala-8b6a34df2ddd45e5c43f29d24d9039e6d5523f02.tar.gz scala-8b6a34df2ddd45e5c43f29d24d9039e6d5523f02.tar.bz2 scala-8b6a34df2ddd45e5c43f29d24d9039e6d5523f02.zip |
Fixed #1131.
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/transform/CleanUp.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/transform/CleanUp.scala b/src/compiler/scala/tools/nsc/transform/CleanUp.scala index 8db4d6c938..1a3eaea55f 100644 --- a/src/compiler/scala/tools/nsc/transform/CleanUp.scala +++ b/src/compiler/scala/tools/nsc/transform/CleanUp.scala @@ -569,7 +569,7 @@ abstract class CleanUp extends Transform { val sym = cdef.symbol // is this an anonymous function class? if (!sym.hasAttribute(SerializableAttr) && sym.hasFlag(SYNTHETIC) && - (sym.name.toString.indexOf("anonfun") != -1) && (settings.target.value == "jvm-1.5")) { + (sym.name.toString.indexOf("anonfun") != -1)) { // check whether all of its field members are of serializable type val serializable = sym.info.members forall { m => @@ -587,7 +587,7 @@ abstract class CleanUp extends Transform { sym.attributes = AnnotationInfo(definitions.SerializableAttr.tpe, List(), List()) :: sym.attributes - copy.ClassDef(tree, mods, name, transformTypeDefs(tparams), transformTemplate(impl)) + super.transform(tree) } else super.transform(tree) |