diff options
author | Martin Odersky <odersky@gmail.com> | 2011-07-30 21:50:10 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2011-07-30 21:50:10 +0000 |
commit | 4f5419eecb85092b0cf745cdf9512d810bd70606 (patch) | |
tree | 77dccbb7b1c6c888f44a54d1535d182f2f853e31 /src | |
parent | c0db3f2d065e22796a2c917c6c3b0f14f3982cf0 (diff) | |
download | scala-4f5419eecb85092b0cf745cdf9512d810bd70606.tar.gz scala-4f5419eecb85092b0cf745cdf9512d810bd70606.tar.bz2 scala-4f5419eecb85092b0cf745cdf9512d810bd70606.zip |
Fix to make LiftCode compiler under 1.5.
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/transform/LiftCode.scala | 4 |
1 files changed, 2 insertions, 2 deletions
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)) |