Bug 180683

Summary: codeSelect does not work in unicode names like \u0042
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: CoreAssignee: David Audel <david_audel>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.3   
Target Milestone: 3.3 M7   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed fix none

Description Markus Keller CLA 2007-04-03 07:01:22 EDT
HEAD

ICodeAssist.codeSelect(int, int) does not work on unicode names like \u0042, e.g. set caret to between 00 and 42 in the class declaration name and press Ctrl+Shift+G:

  public class \u0042 {

        public static \u0042 newInstance() {
                return new \u0042();
        }

        public \u0042() {
        }
  }
Comment 1 David Audel CLA 2007-04-06 07:00:51 EDT
Created attachment 63162 [details]
Proposed fix
Comment 2 David Audel CLA 2007-04-06 07:06:48 EDT
Released for 3.3M7

Tests added
  ResolveTests#testUnicode2()->testUnicode3()

SelectionEngine#checkSelection() didn't correctly find the end of identifier if the caret is inside an unicode.
Comment 3 Olivier Thomann CLA 2007-04-27 09:48:51 EDT
Verified for 3.3M7 using I20070427-0010