Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 363061 - Allow const declarations in external types
Summary: Allow const declarations in external types
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Justin Spadea CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-07 11:16 EST by Paul Hoffman CLA
Modified: 2017-02-23 14:19 EST (History)
4 users (show)

See Also:


Attachments

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