Skip to content

Commit 53cd235

Browse files
committed
Don't call updateInfo during typing.
We resort to `setInfo`, basically removing the previous info. This "fixes" a possible race condition in typing ModuleDefs by making the typer always 'win'. See the assertion stack trace in SI-6429.
1 parent 1682c0d commit 53cd235

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/reflect/scala/reflect/internal/Symbols.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1469,7 +1469,7 @@ trait Symbols extends api.Symbols { self: SymbolTable =>
14691469
def makeSerializable() {
14701470
info match {
14711471
case ci @ ClassInfoType(_, _, _) =>
1472-
updateInfo(ci.copy(parents = ci.parents :+ SerializableClass.tpe))
1472+
setInfo(ci.copy(parents = ci.parents :+ SerializableClass.tpe))
14731473
case i =>
14741474
abort("Only ClassInfoTypes can be made serializable: "+ i)
14751475
}

0 commit comments

Comments
 (0)