Default on enum type not working
Status: Beta
Brought to you by:
akira_ag
Consider the folowing ASN.1:
<code>
TestDefault
DEFINITIONS IMPLICIT TAGS ::= BEGIN
Test ::= SEQUENCE {
value-with-default ENUMERATED {value1(0), value2(1)} DEFAULT value1
}
END
</code>
When compiled no matter if java or c# module is chosen the generated initWithDefaults() method does not compile. It contains something like:
<code>
Value_with_defaultEnumType param_Value_with_default =
;
setValue_with_default(param_Value_with_default);
</code>
There are also no warning/errors produced during compilation.
Logged In: YES
user_id=1513714
Originator: NO
Hello!
It's a known issue. The complex default syntaxs (e.g. for enumeration or boxed types) doesn't supported for now.
It's may be planned in the future versions (e.g. 1.6)
Thanks for your report!