Bug 266837

Summary: [model] SourceField.getConstant does not supply a value if type is fully qualified
Product: [Eclipse Project] JDT Reporter: Jens Kuebler <kuebler>
Component: CoreAssignee: Frederic Fusier <frederic_fusier>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: david_audel, jerome_lanneluc
Version: 3.4   
Target Milestone: 3.5 M6   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
Proposed patch jerome_lanneluc: review+

Description Jens Kuebler CLA 2009-03-03 06:56:07 EST
Build ID: I20080617-2000

Steps To Reproduce:
1.Create a Field in a class: private static final java.lang.String = "myString"
2. Programmtically search that field using jdt search
3. Try to access the constant via the getConstant() method of the result SourceField
4. The field will return null as it does not compare the signature fully qualified.


More information:
Comment 1 Frederic Fusier CLA 2009-03-03 07:57:43 EST
I'll take care of that as the test case to reproduce uses search engine...
Comment 2 Frederic Fusier CLA 2009-03-03 10:52:12 EST
Created attachment 127331 [details]
Proposed patch

Jerome, could you review please?
Comment 3 Jerome Lanneluc CLA 2009-03-03 12:54:02 EST
Comment on attachment 127331 [details]
Proposed patch

Looks good
Comment 4 Frederic Fusier CLA 2009-03-03 12:56:29 EST
(In reply to comment #3)
> (From update of attachment 127331 [details])
> Looks good
> 
Thanks

Released for 3.5M6 in HEAD stream.
Comment 5 David Audel CLA 2009-03-09 10:35:43 EDT
Verified for 3.5M6 using I20090309-0100.