Bug 55004 - [DCR] IVariableBinding should have a method returning the constant value
Summary: [DCR] IVariableBinding should have a method returning the constant value
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1.2   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 3.0 M9   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-16 14:40 EST by Kelvin CLA
Modified: 2004-05-18 10:18 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 Kelvin CLA 2004-03-16 14:40:26 EST
It is a great idea that if the IVariableBinding is a constant, It can return 
its constant value.
Comment 1 Olivier Thomann CLA 2004-03-24 12:17:54 EST
Jim, do you think we should add an API for that?
Comment 2 Philipe Mulet CLA 2004-04-08 04:52:13 EDT
Jim - what about adding this API ? This is indeed useful info for doing flow 
analysis or inlining...
Comment 3 Jim des Rivieres CLA 2004-04-08 09:10:47 EDT
Added API method to IVariableBinding
public Object getConstantValue();

Olivier: Please add implementation and tests.
Comment 4 Olivier Thomann CLA 2004-04-16 12:22:24 EDT
Fixed and released in HEAD.
Regression test added.
Comment 5 David Audel CLA 2004-05-18 10:18:23 EDT
Verified for 3.0M9