8231414: Mark various instance fields of javac internal types as transient
Reviewed-by: jjg
This commit is contained in:
parent
eb45b79244
commit
fa2176c3c4
src/jdk.compiler/share/classes/com/sun/tools
doclint
javac
@ -112,7 +112,7 @@ public class DocLint implements Plugin {
|
||||
}
|
||||
|
||||
final String code;
|
||||
final Object[] args;
|
||||
final transient Object[] args;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -2345,14 +2345,14 @@ public abstract class Symbol extends AnnoConstruct implements PoolConstant, Elem
|
||||
|
||||
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<JCDiagnostic> diagSupplier;
|
||||
private transient Supplier<JCDiagnostic> diagSupplier;
|
||||
|
||||
public CompletionFailure(Symbol sym, Supplier<JCDiagnostic> diagSupplier, DeferredCompletionFailureHandler dcfh) {
|
||||
this.dcfh = dcfh;
|
||||
|
@ -639,7 +639,7 @@ public class Types {
|
||||
public static class FunctionDescriptorLookupError extends RuntimeException {
|
||||
private static final long serialVersionUID = 0;
|
||||
|
||||
JCDiagnostic diagnostic;
|
||||
transient JCDiagnostic diagnostic;
|
||||
|
||||
FunctionDescriptorLookupError() {
|
||||
this.diagnostic = null;
|
||||
@ -5002,7 +5002,7 @@ public class Types {
|
||||
public static class InvalidSignatureException extends RuntimeException {
|
||||
private static final long serialVersionUID = 0;
|
||||
|
||||
private final Type type;
|
||||
private final transient Type type;
|
||||
|
||||
InvalidSignatureException(Type type) {
|
||||
this.type = type;
|
||||
|
@ -443,7 +443,7 @@ public class Attr extends JCTree.Visitor {
|
||||
|
||||
private static class BreakAttr extends RuntimeException {
|
||||
static final long serialVersionUID = -6924771130405446405L;
|
||||
private Env<AttrContext> env;
|
||||
private transient Env<AttrContext> env;
|
||||
private BreakAttr(Env<AttrContext> env) {
|
||||
this.env = env;
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -77,7 +77,7 @@ public class CompileStates extends HashMap<Env<AttrContext>, CompileStates.Compi
|
||||
|
||||
private static final long serialVersionUID = 1812267524140424433L;
|
||||
|
||||
protected Context context;
|
||||
protected transient Context context;
|
||||
|
||||
public CompileStates(Context context) {
|
||||
this.context = context;
|
||||
|
@ -137,7 +137,7 @@ public class Infer {
|
||||
public static class InferenceException extends InapplicableMethodException {
|
||||
private static final long serialVersionUID = 0;
|
||||
|
||||
List<JCDiagnostic> messages = List.nil();
|
||||
transient List<JCDiagnostic> messages = List.nil();
|
||||
|
||||
InferenceException() {
|
||||
super(null);
|
||||
@ -1321,7 +1321,7 @@ public class Infer {
|
||||
public static class NodeNotFoundException extends RuntimeException {
|
||||
private static final long serialVersionUID = 0;
|
||||
|
||||
InferenceGraph graph;
|
||||
transient InferenceGraph graph;
|
||||
|
||||
public NodeNotFoundException(InferenceGraph graph) {
|
||||
this.graph = graph;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1999, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -1387,7 +1387,7 @@ public class Resolve {
|
||||
public static class InapplicableMethodException extends RuntimeException {
|
||||
private static final long serialVersionUID = 0;
|
||||
|
||||
JCDiagnostic diagnostic;
|
||||
transient JCDiagnostic diagnostic;
|
||||
|
||||
InapplicableMethodException(JCDiagnostic diag) {
|
||||
this.diagnostic = diag;
|
||||
|
@ -280,7 +280,7 @@ public class Locations {
|
||||
private static final long serialVersionUID = 0;
|
||||
|
||||
private boolean expandJarClassPaths = false;
|
||||
private final Set<Path> canonicalValues = new HashSet<>();
|
||||
private final transient Set<Path> canonicalValues = new HashSet<>();
|
||||
|
||||
public SearchPath expandJarClassPaths(boolean x) {
|
||||
expandJarClassPaths = x;
|
||||
@ -290,7 +290,7 @@ public class Locations {
|
||||
/**
|
||||
* What to use when path element is the empty string
|
||||
*/
|
||||
private Path emptyPathDefault = null;
|
||||
private transient Path emptyPathDefault = null;
|
||||
|
||||
public SearchPath emptyPathDefault(Path x) {
|
||||
emptyPathDefault = x;
|
||||
|
Loading…
x
Reference in New Issue
Block a user