diff options
author | Philipp Haller <hallerp@gmail.com> | 2009-01-14 14:39:31 +0000 |
---|---|---|
committer | Philipp Haller <hallerp@gmail.com> | 2009-01-14 14:39:31 +0000 |
commit | 774176c7a6b573c8a3922ac7e8f39b3f959d19de (patch) | |
tree | e2c274181c5e63759b5561065458a7b2e4af989d /src/compiler | |
parent | 323e895672ba0f9426be33de485bb7a6190af74c (diff) | |
download | scala-774176c7a6b573c8a3922ac7e8f39b3f959d19de.tar.gz scala-774176c7a6b573c8a3922ac7e8f39b3f959d19de.tar.bz2 scala-774176c7a6b573c8a3922ac7e8f39b3f959d19de.zip |
Fixed #1143 (again).
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/transform/CleanUp.scala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/transform/CleanUp.scala b/src/compiler/scala/tools/nsc/transform/CleanUp.scala index 64325aa78e..0f6759cbb4 100644 --- a/src/compiler/scala/tools/nsc/transform/CleanUp.scala +++ b/src/compiler/scala/tools/nsc/transform/CleanUp.scala @@ -49,6 +49,8 @@ abstract class CleanUp extends Transform { private var localTyper: analyzer.Typer = null + private val serialIFace = definitions.getClass("java.io.Serializable") + private def classConstantMethod(pos: Position, sig: String): Symbol = classConstantMeth.get(sig) match { case Some(meth) => meth @@ -747,7 +749,7 @@ abstract class CleanUp extends Transform { // reference types must be marked as such. isValueType(typeSym) || typeSym.hasAttribute(SerializableAttr) || - (m.info.baseClasses exists { bc => bc hasAttribute SerializableAttr }) + (m.info.baseClasses exists { bc => (bc hasAttribute SerializableAttr) || (bc == serialIFace) }) } } |