Bug 266837 - [model] SourceField.getConstant does not supply a value if type is fully qualified
Summary: [model] SourceField.getConstant does not supply a value if type is fully qual...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.4   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 3.5 M6   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-03 06:56 EST by Jens Kuebler CLA
Modified: 2009-03-09 10:35 EDT (History)
2 users (show)

See Also:


Attachments
Proposed patch (5.09 KB, patch)
2009-03-03 10:52 EST, Frederic Fusier CLA
jerome_lanneluc: review+
Details | Diff

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