< prev index next > src/jdk.compiler/share/classes/com/sun/tools/javac/comp/AttrContext.java
Print this page
* but this may not be true during the window a method is looked up in enclosing
* contexts (JDK-8145466)
*/
JCTree preferredTreeForDiagnostics;
+ boolean instanceInitializerBlock = false;
+
/** Duplicate this context, replacing scope field and copying all others.
*/
AttrContext dup(WriteableScope scope) {
AttrContext info = new AttrContext();
info.scope = scope;
info.isAnonymousDiamond = isAnonymousDiamond;
info.isNewClass = isNewClass;
info.preferredTreeForDiagnostics = preferredTreeForDiagnostics;
info.visitingServiceImplementation = visitingServiceImplementation;
info.allowProtectedAccess = allowProtectedAccess;
+ info.instanceInitializerBlock = instanceInitializerBlock;
return info;
}
/** Duplicate this context, copying all fields.
*/
< prev index next >