1.1 --- a/src/share/classes/com/sun/tools/javac/parser/JavacParser.java Tue Jul 13 19:20:48 2010 -0700 1.2 +++ b/src/share/classes/com/sun/tools/javac/parser/JavacParser.java Thu Jul 15 16:31:02 2010 +0100 1.3 @@ -1151,8 +1151,12 @@ 1.4 t = toP(F.at(pos).Select(t, ident())); 1.5 break; 1.6 case ELLIPSIS: 1.7 - assert this.permitTypeAnnotationsPushBack; 1.8 - typeAnnotationsPushedBack = annos; 1.9 + if (this.permitTypeAnnotationsPushBack) { 1.10 + this.typeAnnotationsPushedBack = annos; 1.11 + } else if (annos.nonEmpty()) { 1.12 + // Don't return here -- error recovery attempt 1.13 + illegal(annos.head.pos); 1.14 + } 1.15 break loop; 1.16 default: 1.17 break loop;