diff -r 13588c901957 -r 9cf78a70fa4f src/jdk.compiler/share/classes/com/sun/tools/javac/code/Symbol.java --- a/src/jdk.compiler/share/classes/com/sun/tools/javac/code/Symbol.java Thu Oct 17 20:27:44 2019 +0100 +++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/code/Symbol.java Thu Oct 17 20:53:35 2019 +0100 @@ -2063,7 +2063,8 @@ @DefinedBy(Api.LANGUAGE_MODEL) public Type getReceiverType() { - return asType().getReceiverType(); + Type result = asType().getReceiverType(); + return (result == null) ? Type.noType : result; } @DefinedBy(Api.LANGUAGE_MODEL) @@ -2344,14 +2345,14 @@ public static class CompletionFailure extends RuntimeException { private static final long serialVersionUID = 0; - public final DeferredCompletionFailureHandler dcfh; - public Symbol sym; + public final transient DeferredCompletionFailureHandler dcfh; + public transient Symbol sym; /** A diagnostic object describing the failure */ - private JCDiagnostic diag; + private transient JCDiagnostic diag; - private Supplier diagSupplier; + private transient Supplier diagSupplier; public CompletionFailure(Symbol sym, Supplier diagSupplier, DeferredCompletionFailureHandler dcfh) { this.dcfh = dcfh;