View | Details | Raw Unified | Return to bug 196714
Collapse All | Expand All

(-)compiler/org/eclipse/jdt/internal/compiler/parser/AbstractCommentParser.java (-5 / +11 lines)
Lines 861-876 Link Here
861
			// Report problem
861
			// Report problem
862
			this.currentTokenType = -1;
862
			this.currentTokenType = -1;
863
			if (isCompletionParser) return false;
863
			if (isCompletionParser) return false;
864
			end = hasMultiLines ? this.lineEnd: this.scanner.getCurrentTokenEndPosition();
864
			if (this.reportProblems) {
865
			while ((token=readToken()) != TerminalTokens.TokenNameWHITESPACE && token != TerminalTokens.TokenNameEOF) {
865
				// we only need end if we report problems
866
				this.currentTokenType = -1;
867
				end = hasMultiLines ? this.lineEnd: this.scanner.getCurrentTokenEndPosition();
866
				end = hasMultiLines ? this.lineEnd: this.scanner.getCurrentTokenEndPosition();
868
			}
867
				try {
869
			if (this.reportProblems)
868
					while ((token=readToken()) != TerminalTokens.TokenNameWHITESPACE && token != TerminalTokens.TokenNameEOF) {
869
						this.currentTokenType = -1;
870
						end = hasMultiLines ? this.lineEnd: this.scanner.getCurrentTokenEndPosition();
871
					}
872
				} catch (InvalidInputException e) {
873
					end = lineEnd;
874
				}
870
				if (mayBeGeneric && isTypeParam)
875
				if (mayBeGeneric && isTypeParam)
871
					this.sourceParser.problemReporter().javadocInvalidParamTypeParameter(start, end);
876
					this.sourceParser.problemReporter().javadocInvalidParamTypeParameter(start, end);
872
				else
877
				else
873
					this.sourceParser.problemReporter().javadocInvalidParamTagName(start, end);
878
					this.sourceParser.problemReporter().javadocInvalidParamTagName(start, end);
879
			}
874
			this.scanner.currentPosition = start;
880
			this.scanner.currentPosition = start;
875
			this.index = start;
881
			this.index = start;
876
			this.currentTokenType = -1;
882
			this.currentTokenType = -1;

Return to bug 196714