diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/reflect/scala/reflect/api/Exprs.scala | 1 | ||||
-rw-r--r-- | src/reflect/scala/reflect/api/TypeTags.scala | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/reflect/scala/reflect/api/Exprs.scala b/src/reflect/scala/reflect/api/Exprs.scala index 6d401b5a79..3230fdbc67 100644 --- a/src/reflect/scala/reflect/api/Exprs.scala +++ b/src/reflect/scala/reflect/api/Exprs.scala @@ -163,6 +163,7 @@ trait Exprs { self: Universe => } } +@SerialVersionUID(1L) private[scala] class SerializedExpr(var treec: TreeCreator, var tag: ru.WeakTypeTag[_]) extends Serializable { import scala.reflect.runtime.universe.{Expr, runtimeMirror} diff --git a/src/reflect/scala/reflect/api/TypeTags.scala b/src/reflect/scala/reflect/api/TypeTags.scala index 1d53453bde..7db375ca61 100644 --- a/src/reflect/scala/reflect/api/TypeTags.scala +++ b/src/reflect/scala/reflect/api/TypeTags.scala @@ -349,8 +349,7 @@ trait TypeTags { self: Universe => // This class should be final, but we can't do that in Scala 2.11.x without breaking // binary incompatibility. -// Since instances of this class are serialized, this class should have a -// SerialVersionUID annotation. +@SerialVersionUID(1L) private[scala] class SerializedTypeTag(var tpec: TypeCreator, var concrete: Boolean) extends Serializable { import scala.reflect.runtime.universe.{TypeTag, WeakTypeTag, runtimeMirror} @throws(classOf[ObjectStreamException]) |