--- old/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java 2019-12-20 15:40:58.000000000 +0000 +++ new/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java 2019-12-20 15:40:57.000000000 +0000 @@ -1490,7 +1490,7 @@ env.dup(env.tree, env.info.dup(env.info.scope.dup())); try { //the Formal Parameter of a for-each loop is not in the scope when - //attributing the for-each expression; we mimick this by attributing + //attributing the for-each expression; we mimic this by attributing //the for-each expression first (against original scope). Type exprType = types.cvarUpperBound(attribExpr(tree.expr, loopEnv)); chk.checkNonVoid(tree.pos(), exprType); @@ -3466,7 +3466,7 @@ if (!env.info.attributionMode.isSpeculative && that.getMode() == JCMemberReference.ReferenceMode.NEW) { Type enclosingType = exprType.getEnclosingType(); if (enclosingType != null && enclosingType.hasTag(CLASS)) { - // Check for the existence of an apropriate outer instance + // Check for the existence of an appropriate outer instance rs.resolveImplicitThis(that.pos(), env, exprType); } } @@ -4197,7 +4197,7 @@ case TYPEVAR: // Normally, site.getUpperBound() shouldn't be null. // It should only happen during memberEnter/attribBase - // when determining the super type which *must* beac + // when determining the super type which *must* be // done before attributing the type variables. In // other words, we are seeing this illegal program: // class B extends A {} @@ -5170,7 +5170,7 @@ checkSerialVersionUID(tree, c); } if (allowTypeAnnos) { - // Correctly organize the postions of the type annotations + // Correctly organize the positions of the type annotations typeAnnotations.organizeTypeAnnotationsBodies(tree); // Check type annotations applicability rules @@ -5480,7 +5480,7 @@ * the compiler has encountered some errors (which might have ended up * terminating attribution abruptly); if the compiler is used in fail-over * mode (e.g. by an IDE) and the AST contains semantic errors, this routine - * prevents NPE to be progagated during subsequent compilation steps. + * prevents NPE to be propagated during subsequent compilation steps. */ public void postAttr(JCTree tree) { new PostAttrAnalyzer().scan(tree);