Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 368717 - Update validation rules for initial values in an annotation record
Summary: Update validation rules for initial values in an annotation record
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-16 10:16 EST by Paul Harmon CLA
Modified: 2017-02-23 14:20 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Harmon CLA 2012-01-16 10:16:12 EST
Currently, validation does not allow the following:

ExternalType ET1 type javaobject
   static etField1 int;
end

record rec1 type annotation

   annField1 fieldRef = ET1.etField1;  //Valation error here

end


The Validation error says that fieldref and int are not compatible. This needs to be changed to allow for proper inititial values of annotation record fields. Clearly, the rules for annotation field assignment compatibility needs to be different than the rules for initialization of regular record fields.
Comment 1 Matt Heitz CLA 2013-01-03 14:43:24 EST
Setting the target milestone to Future for bugs that won't be addressed in 0.8.2.