From 753e15520ad1baf7a0eabaa78a6f6136de97f56b Mon Sep 17 00:00:00 2001 From: Philipp Haller Date: Tue, 29 Jul 2008 16:13:47 +0000 Subject: Disabled code in CleanUp to enable build of 1.4... Disabled code in CleanUp to enable build of 1.4 library. --- src/compiler/scala/tools/nsc/transform/CleanUp.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/compiler/scala/tools/nsc/transform/CleanUp.scala b/src/compiler/scala/tools/nsc/transform/CleanUp.scala index d766db7146..0b53dfcd79 100644 --- a/src/compiler/scala/tools/nsc/transform/CleanUp.scala +++ b/src/compiler/scala/tools/nsc/transform/CleanUp.scala @@ -568,7 +568,8 @@ abstract class CleanUp extends Transform { case cdef @ ClassDef(mods, name, tparams, impl) => val sym = cdef.symbol // is this an anonymous function class? - if (sym.hasFlag(SYNTHETIC) && sym.name.toString.contains("anonfun")) { + if (sym.hasFlag(SYNTHETIC) && sym.name.toString.contains("anonfun") && + settings.target.value == "jvm-1.5") { // check whether all of its field members are of serializable type val serializable = sym.info.members forall { m => -- cgit v1.2.3