Bug 91160

Summary: SourceField.getConstant() incorrect for char constants
Product: [Eclipse Project] JDT Reporter: icemank
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0.1   
Target Milestone: 3.1 M7   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description icemank CLA 2005-04-12 12:41:53 EDT
If I have a field:
public static final char c = ' ';

getConstant() on the SourceField returns ' (the single quote character) instead
of the space character.
Comment 1 Olivier Thomann CLA 2005-04-12 13:57:47 EDT
Reproduced.
Comment 2 Olivier Thomann CLA 2005-04-12 13:58:58 EDT
Fixed and released in HEAD.
Add regression test in GetSourceTests.testFieldConstant() method
(field4/field5/field6).
Comment 3 Maxime Daniel CLA 2005-05-13 06:55:56 EDT
Verified for 3.1 M7 using build I20050512-2035 + jdt.core HEAD.