1.1 --- a/src/share/classes/com/sun/tools/javac/parser/JavacParser.java Mon Jan 10 15:08:31 2011 -0800 1.2 +++ b/src/share/classes/com/sun/tools/javac/parser/JavacParser.java Tue Jan 11 08:05:28 2011 -0800 1.3 @@ -2569,6 +2569,12 @@ 1.4 } else { 1.5 pos = S.pos(); 1.6 List<JCTypeParameter> typarams = typeParametersOpt(); 1.7 + // if there are type parameters but no modifiers, save the start 1.8 + // position of the method in the modifiers. 1.9 + if (typarams.nonEmpty() && mods.pos == Position.NOPOS) { 1.10 + mods.pos = pos; 1.11 + storeEnd(mods, pos); 1.12 + } 1.13 Name name = S.name(); 1.14 pos = S.pos(); 1.15 JCExpression type;