Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 363061

Summary: Allow const declarations in external types
Product: z_Archived Reporter: Paul Hoffman <hoffmanp>
Component: EDTAssignee: Justin Spadea <jspadea>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: jspadea, mheitz, pharmon, svihovec
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Paul Hoffman CLA 2011-11-07 11:16:17 EST
External types can include definitions of variables specified as static final in the Java class being wrapped by the type.   For example, "CONCUR_UPDATABLE int" is a such a variable in SQLResultSet.

EGL language allows values to be assigned to CONCUR_UPDATABLE.    This will result in a runtime exception because the variable is static final. 

It would be a lot friendlier if the language allowed the developer to specify limits on its usage.
Comment 1 Paul Harmon CLA 2011-11-07 11:35:39 EST
deferring to future, since this is not critical for 0.7
Comment 2 Lisa Lasher CLA 2011-11-14 15:42:32 EST
changing from defect to enhancement
Comment 3 Justin Spadea CLA 2012-11-15 12:45:32 EST
http://git.eclipse.org/c/edt/org.eclipse.edt.git/commit/?id=f02df8d16516d05888953b77427b1d11e2a4b401

Updated parser to allow const in ET fields (after the optional 'static' modifier). ET wizard now generates 'const' for final fields. And the code formatter was updated to support const in this location.
Comment 4 Matt Heitz CLA 2013-01-03 10:41:35 EST
Moving old fixed bugs from the RESOLVED state to CLOSED.