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

(-)compiler/org/eclipse/jdt/internal/compiler/parser/Scanner.java (-6 / +10 lines)
Lines 425-436 Link Here
425
			this.withoutUnicodePtr); 
425
			this.withoutUnicodePtr); 
426
	else {
426
	else {
427
		int length;
427
		int length;
428
		System.arraycopy(
428
		if(this.source.length >= this.currentPosition){
429
			this.source, 
429
			System.arraycopy(
430
			this.startPosition, 
430
					this.source, 
431
			result = new char[length = this.currentPosition - this.startPosition], 
431
					this.startPosition, 
432
			0, 
432
					result = new char[length = this.currentPosition - this.startPosition], 
433
			length); 
433
					0, 
434
					length); 			
435
		}else {
436
			return new char[0];
437
		}
434
	}
438
	}
435
	return result;
439
	return result;
436
}
440
}

Return to bug 238538