Menu

#21 Default on enum type not working

v1.6
open-later
BNCompiler (20)
5
2007-10-02
2007-10-02
No

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.

Discussion

  • Abdulla(h) Abdurakhmanov

    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!

     
  • Abdulla(h) Abdurakhmanov

    • status: open --> open-later
     
  • Abdulla(h) Abdurakhmanov

    • milestone: 696504 --> v1.6
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.