--- old/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Flow.java 2019-12-20 15:41:00.000000000 +0000 +++ new/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Flow.java 2019-12-20 15:41:00.000000000 +0000 @@ -137,7 +137,7 @@ * return statement" iff V is DA before the return statement or V is * DA at the end of any intervening finally block. Note that we * don't have to worry about the return expression because this - * concept is only used for construcrors. + * concept is only used for constructors. * *

There is no spec in the JLS for when a variable is definitely * assigned at the end of a constructor, which is needed for final @@ -223,7 +223,7 @@ Log.DiagnosticHandler diagHandler = null; //we need to disable diagnostics temporarily; the problem is that if //a lambda expression contains e.g. an unreachable statement, an error - //message will be reported and will cause compilation to skip the flow analyis + //message will be reported and will cause compilation to skip the flow analysis //step - if we suppress diagnostics, we won't stop at Attr for flow-analysis //related errors, which will allow for more errors to be detected if (!speculative) { @@ -242,7 +242,7 @@ JCLambda that, TreeMaker make) { //we need to disable diagnostics temporarily; the problem is that if //a lambda expression contains e.g. an unreachable statement, an error - //message will be reported and will cause compilation to skip the flow analyis + //message will be reported and will cause compilation to skip the flow analysis //step - if we suppress diagnostics, we won't stop at Attr for flow-analysis //related errors, which will allow for more errors to be detected Log.DiagnosticHandler diagHandler = new Log.DiscardDiagnosticHandler(log); @@ -259,7 +259,7 @@ public boolean aliveAfter(Env env, JCTree that, TreeMaker make) { //we need to disable diagnostics temporarily; the problem is that if //"that" contains e.g. an unreachable statement, an error - //message will be reported and will cause compilation to skip the flow analyis + //message will be reported and will cause compilation to skip the flow analysis //step - if we suppress diagnostics, we won't stop at Attr for flow-analysis //related errors, which will allow for more errors to be detected Log.DiagnosticHandler diagHandler = new Log.DiscardDiagnosticHandler(log); @@ -276,7 +276,7 @@ public boolean breaksOutOf(Env env, JCTree loop, JCTree body, TreeMaker make) { //we need to disable diagnostics temporarily; the problem is that if //"that" contains e.g. an unreachable statement, an error - //message will be reported and will cause compilation to skip the flow analyis + //message will be reported and will cause compilation to skip the flow analysis //step - if we suppress diagnostics, we won't stop at Attr for flow-analysis //related errors, which will allow for more errors to be detected Log.DiagnosticHandler diagHandler = new Log.DiscardDiagnosticHandler(log); @@ -1310,7 +1310,7 @@ log.error(pos, Errors.ExceptNeverThrownInTry(exc)); } else { List catchableThrownTypes = chk.intersect(List.of(exc), thrownInTry); - // 'catchableThrownTypes' cannnot possibly be empty - if 'exc' was an + // 'catchableThrownTypes' cannot possibly be empty - if 'exc' was an // unchecked exception, the result list would not be empty, as the augmented // thrown set includes { RuntimeException, Error }; if 'exc' was a checked // exception, that would have been covered in the branch above