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

(-)compiler/org/eclipse/jdt/internal/compiler/parser/Scanner.java (-10 / +2 lines)
Lines 905-910 Link Here
905
					if (this.currentPosition > this.eofPosition)
905
					if (this.currentPosition > this.eofPosition)
906
						return TokenNameEOF;
906
						return TokenNameEOF;
907
				}
907
				}
908
				if (this.currentPosition > this.eofPosition)
909
					return TokenNameEOF;
908
				if (checkIfUnicode) {
910
				if (checkIfUnicode) {
909
					isWhiteSpace = jumpOverUnicodeWhiteSpace();
911
					isWhiteSpace = jumpOverUnicodeWhiteSpace();
910
					offset = this.currentPosition - offset;
912
					offset = this.currentPosition - offset;
Lines 955-966 Link Here
955
					this.withoutUnicodePtr = 0;
957
					this.withoutUnicodePtr = 0;
956
				}
958
				}
957
			}
959
			}
958
			//little trick to get out in the middle of a source compuation
959
			if (this.currentPosition > this.eofPosition)
960
				return TokenNameEOF;
961
962
			// ---------Identify the next token-------------
960
			// ---------Identify the next token-------------
963
964
			switch (this.currentCharacter) {
961
			switch (this.currentCharacter) {
965
				case '@' :
962
				case '@' :
966
/*					if (this.sourceLevel >= ClassFileConstants.JDK1_5) {
963
/*					if (this.sourceLevel >= ClassFileConstants.JDK1_5) {
Lines 2433-2443 Link Here
2433
	}
2430
	}
2434
	this.commentPtr = -1; // reset comment stack
2431
	this.commentPtr = -1; // reset comment stack
2435
	this.foundTaskCount = 0;
2432
	this.foundTaskCount = 0;
2436
	
2437
//	// if resetTo is used with being > than end.
2438
//	if (begin > this.eofPosition) {
2439
//		begin = this.eofPosition;
2440
//	}
2441
}
2433
}
2442
2434
2443
public final void scanEscapeCharacter() throws InvalidInputException {
2435
public final void scanEscapeCharacter() throws InvalidInputException {
(-)model/org/eclipse/jdt/internal/core/util/PublicScanner.java (-10 / +3 lines)
Lines 904-909 Link Here
904
					if (this.currentPosition > this.eofPosition)
904
					if (this.currentPosition > this.eofPosition)
905
						return TokenNameEOF;
905
						return TokenNameEOF;
906
				}
906
				}
907
				//little trick to get out in the middle of a source compuation
908
				if (this.currentPosition > this.eofPosition)
909
					return TokenNameEOF;
907
				if (checkIfUnicode) {
910
				if (checkIfUnicode) {
908
					isWhiteSpace = jumpOverUnicodeWhiteSpace();
911
					isWhiteSpace = jumpOverUnicodeWhiteSpace();
909
					offset = this.currentPosition - offset;
912
					offset = this.currentPosition - offset;
Lines 954-965 Link Here
954
					this.withoutUnicodePtr = 0;
957
					this.withoutUnicodePtr = 0;
955
				}
958
				}
956
			}
959
			}
957
			//little trick to get out in the middle of a source compuation
958
			if (this.currentPosition > this.eofPosition)
959
				return TokenNameEOF;
960
961
			// ---------Identify the next token-------------
960
			// ---------Identify the next token-------------
962
963
			switch (this.currentCharacter) {
961
			switch (this.currentCharacter) {
964
				case '@' :
962
				case '@' :
965
/*					if (this.sourceLevel >= ClassFileConstants.JDK1_5) {
963
/*					if (this.sourceLevel >= ClassFileConstants.JDK1_5) {
Lines 2421-2431 Link Here
2421
	}
2419
	}
2422
	this.commentPtr = -1; // reset comment stack
2420
	this.commentPtr = -1; // reset comment stack
2423
	this.foundTaskCount = 0;
2421
	this.foundTaskCount = 0;
2424
	
2425
//	// if resetTo is used with being > than end.
2426
//	if (begin > this.eofPosition) {
2427
//		begin = this.eofPosition;
2428
//	}
2429
}
2422
}
2430
2423
2431
public final void scanEscapeCharacter() throws InvalidInputException {
2424
public final void scanEscapeCharacter() throws InvalidInputException {

Return to bug 106403