--- old/src/share/classes/com/sun/tools/javac/comp/Lower.java 2014-12-09 15:41:12.265863309 -0500 +++ new/src/share/classes/com/sun/tools/javac/comp/Lower.java 2014-12-09 15:41:12.187862335 -0500 @@ -2716,10 +2716,9 @@ syms.intType, tree.sym); ordParam.mods.flags |= SYNTHETIC; ordParam.sym.flags_field |= SYNTHETIC; - MethodSymbol m = tree.sym; tree.params = tree.params.prepend(ordParam).prepend(nameParam); - incrementParamTypeAnnoIndexes(m, 2); + MethodSymbol m = tree.sym; m.extraParams = m.extraParams.prepend(ordParam.sym); m.extraParams = m.extraParams.prepend(nameParam.sym); Type olderasure = m.erasure(types); @@ -2742,17 +2741,6 @@ } } //where - private void incrementParamTypeAnnoIndexes(MethodSymbol m, - int amount) { - for (final Attribute.TypeCompound anno : m.getRawTypeAttributes()) { - // Increment the parameter_index of any existing formal - // parameter annotations. - if (anno.position.type == TargetType.METHOD_FORMAL_PARAMETER) { - anno.position.parameter_index += amount; - } - } - } - private void visitMethodDefInternal(JCMethodDecl tree) { if (tree.name == names.init && (currentClass.isInner() || currentClass.isLocal())) { @@ -2783,10 +2771,8 @@ // Add this$n (if needed) in front of and free variables behind // constructor parameter list. tree.params = tree.params.appendList(fvdefs); - if (currentClass.hasOuterInstance()) { + if (currentClass.hasOuterInstance()) tree.params = tree.params.prepend(otdef); - incrementParamTypeAnnoIndexes(m, 1); - } // If this is an initial constructor, i.e., it does not start with // this(...), insert initializers for this$n and proxies