Bug 308428

Summary: Possible problem to get corrections with surrogate characters
Product: [Eclipse Project] JDT Reporter: Olivier Thomann <Olivier_Thomann>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jarthana
Version: 3.6   
Target Milestone: 3.6 M7   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed fix + regression test none

Description Olivier Thomann CLA 2010-04-07 22:17:04 EDT
The CorrectionEngine is also using a scanner without using the proper options.
So it is possible that the corrections are not right when surrogate characters are used.
Comment 1 Olivier Thomann CLA 2010-04-07 22:31:46 EDT
Created attachment 164162 [details]
Proposed fix + regression test
Comment 2 Olivier Thomann CLA 2010-04-08 14:00:03 EDT
Released for 3.6M7.
Added regression test in:
org.eclipse.jdt.core.tests.model.CodeCorrectionTests#testCorrectLocalVariable2
Comment 3 Jay Arthanareeswaran CLA 2010-04-27 04:18:50 EDT
Verified for 3.6M7 using build I20100424-2000.

An observation, though:
Though the marker view shows the problem, the content assist doesn't offer any completions. I suppose it should be a different bug?