### Eclipse Workspace Patch 1.0 #P org.eclipse.jdt.core Index: compiler/org/eclipse/jdt/internal/compiler/parser/Scanner.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Scanner.java,v retrieving revision 1.179 diff -u -r1.179 Scanner.java --- compiler/org/eclipse/jdt/internal/compiler/parser/Scanner.java 29 Mar 2006 02:47:34 -0000 1.179 +++ compiler/org/eclipse/jdt/internal/compiler/parser/Scanner.java 18 Oct 2006 12:59:27 -0000 @@ -853,10 +853,10 @@ unicodePtr = this.withoutUnicodePtr; offset = this.currentPosition; this.startPosition = this.currentPosition; - try { - checkIfUnicode = ((this.currentCharacter = this.source[this.currentPosition++]) == '\\') - && (this.source[this.currentPosition] == 'u'); - } catch(IndexOutOfBoundsException e) { + if (currentPosition++ < source.length) { + this.currentCharacter = this.source[this.currentPosition]; + checkIfUnicode = currentCharacter == '\\' && (currentCharacter == 'u'); + } else{ if (this.tokenizeWhiteSpace && (whiteStart != this.currentPosition - 1)) { // reposition scanner in case we are interested by spaces as tokens this.currentPosition--;