From 4f5419eecb85092b0cf745cdf9512d810bd70606 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Sat, 30 Jul 2011 21:50:10 +0000 Subject: Fix to make LiftCode compiler under 1.5. --- src/compiler/scala/tools/nsc/transform/LiftCode.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/compiler/scala/tools/nsc/transform/LiftCode.scala b/src/compiler/scala/tools/nsc/transform/LiftCode.scala index bd0e8c1e08..1103d1e608 100644 --- a/src/compiler/scala/tools/nsc/transform/LiftCode.scala +++ b/src/compiler/scala/tools/nsc/transform/LiftCode.scala @@ -136,11 +136,11 @@ abstract class LiftCode extends Transform with TypingTransformers { def reify1(value: Any): Tree = { def treatProduct(c: Product): Tree = { val fullname = objectName(c) - if (!fullname.isEmpty) + if (fullname.length != 0) termPath(fullname) else { val fullname = className(c) - if (fullname.isEmpty) abort("don't know how to inject " + value + " of class " + value.getClass) + if (fullname.length == 0) abort("don't know how to inject " + value + " of class " + value.getClass) val injectedArgs = new ListBuffer[Tree] for (i <- 0 until c.productArity) injectedArgs += reify(c.productElement(i)) -- cgit v1.2.3