Make NamedType's list of PropertyContinuations transient
This papers over an issue where the compiler does not resolve template types. In most cases this bug only causes false negatives in typechecking, but in rare cases it triggers a java.io.NotSerializableException during multistage compilation because NamedTypes still have unfinished PropertyContinuations.
@@ -101,10 +101,8 @@ public final class NamedType extends ProxyObjectType {
*/
private transient Predicate<JSType> validator;
- /**
- * Property-defining continuations.
- */
- private List<PropertyContinuation> propertyContinuations = null;
+ /** Property-defining continuations. */
+ private transient List<PropertyContinuation> propertyContinuations = null;
/**
* Template types defined on a named, not yet resolved type, or {@code null} if none. These are
