Bug 91160 - SourceField.getConstant() incorrect for char constants
Summary: SourceField.getConstant() incorrect for char constants
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M7   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-12 12:41 EDT by icemank CLA
Modified: 2005-05-13 09:19 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.