Bug 425260 - [serializer] empty lists should be transient by default
Summary: [serializer] empty lists should be transient by default
Status: NEW
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.4.3   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-10 04:51 EST by Moritz Eysholdt CLA
Modified: 2014-01-10 04:51 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Moritz Eysholdt CLA 2014-01-10 04:51:22 EST
Example:


Rule: "none" | "{" vals+=ID* "}"


For an empty vals-list, serialization is ambiguous. The preference should be given to "none", because it's the left-most valid case in the alternative.

This doesn't happen at the moment since lists are not marked as transient when they're empty.


also check if 
Rule: "none" | "{" vals+=ID+ "}"
can can lead to serialization errors for empty vals-list.