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

(-)compiler/org/eclipse/jdt/internal/compiler/parser/Scanner.java (+6 lines)
Lines 3062-3068 Link Here
3062
				}
3062
				}
3063
				// hexadeciman floating point literal
3063
				// hexadeciman floating point literal
3064
				// read decimal part
3064
				// read decimal part
3065
				boolean hasNoDigitsBeforeDot = end == start;
3066
				start = this.currentPosition;
3065
				while (getNextCharAsDigit(16)){/*empty*/}
3067
				while (getNextCharAsDigit(16)){/*empty*/}
3068
				end = this.currentPosition;
3069
				if (hasNoDigitsBeforeDot && end == start) {
3070
					throw new InvalidInputException(INVALID_HEXA);
3071
				}
3066
				
3072
				
3067
				if (getNextChar('p', 'P') >= 0) { // consume next character
3073
				if (getNextChar('p', 'P') >= 0) { // consume next character
3068
					this.unicodeAsBackSlash = false;
3074
					this.unicodeAsBackSlash = false;
(-)model/org/eclipse/jdt/internal/core/util/PublicScanner.java (+6 lines)
Lines 3059-3065 Link Here
3059
				}
3059
				}
3060
				// hexadeciman floating point literal
3060
				// hexadeciman floating point literal
3061
				// read decimal part
3061
				// read decimal part
3062
				boolean hasNoDigitsBeforeDot = end == start;
3063
				start = this.currentPosition;
3062
				while (getNextCharAsDigit(16)){/*empty*/}
3064
				while (getNextCharAsDigit(16)){/*empty*/}
3065
				end = this.currentPosition;
3066
				if (hasNoDigitsBeforeDot && end == start) {
3067
					throw new InvalidInputException(INVALID_HEXA);
3068
				}
3063
				
3069
				
3064
				if (getNextChar('p', 'P') >= 0) { // consume next character
3070
				if (getNextChar('p', 'P') >= 0) { // consume next character
3065
					this.unicodeAsBackSlash = false;
3071
					this.unicodeAsBackSlash = false;

Return to bug 78905