Skip to content
Snippets Groups Projects
Commit debacc08 authored by Botond Baranyi's avatar Botond Baranyi
Browse files

XER: fixed untagged optional union decoding error (issue #585)


Signed-off-by: default avatarBotond Baranyi <botond.baranyi@ericsson.com>
parent dc0b5f9d
No related branches found
No related tags found
10 merge requests!258OOP: classes embedded in structures - part 1 (issue #601),!243OOP: added semantic checks for overriding/shadowing object methods (issue #596),!242OOP: updated presence checking operators and object methods (issue #596),!241OOP: fixed super-constructor call parameter code generation for structured values and templates (issue #591),!239Fixed an issue with the parameter default value location change (issue #581),!238OOP: fixed name clash in the constructor and improved previous modifications...,!237Made location information for parameter default value assignments more accurate (issue #581),!236Fixed 'implicit omit' inside optional fields that are present (issue #588),!234Added location information to formal parameter default value assignments (issue #581),!233XER: fixed untagged optional union decoding error (issue #585)
......@@ -2012,7 +2012,7 @@ void defUnionClass(struct_def const *sdef, output_struct *output)
}
if (!sdef->isOptional) {
src = mputstr(src,
" else {\n"
" else if (!(p_flavor & XER_OPTIONAL)) {\n"
" ec_1.set_msg(\" \");\n"
" TTCN_EncDec_ErrorContext::error(TTCN_EncDec::ET_INVAL_MSG, "
"\"'%s' does not match any alternative\", elem_name);\n"
......
......@@ -30,7 +30,8 @@ endif
XDIRS := $(wildcard $(SHADOWED)) xsdConverter \
HM60295 HN15589 HQ30408 HR49727 HU13380 $(RT2_ONLY) \
XmlWorkflow tpdValidTest AbstractBlock UseNilLong AttributeFormDefault \
RecordOmit XSDBaseType LegacyUntaggedUnion Printing Bug570707
RecordOmit XSDBaseType LegacyUntaggedUnion Printing Bug570707 \
Issue545 Issue585
# List of fake targets:
.PHONY: all dep clean run $(XDIRS) $(addsuffix /, $(XDIRS)) profile
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment