Description
The ASN specification allows the creation of valid ASN files that has features unrecognized by the asn1bean library we are using in JASN1Reader.
We can add a preprocessing step that creates modified versions of the provided ASN files (leaving the originals intact) that removes unsupported features in a way that makes them less strict but otherwise should still be compatible with incoming data.
Identified unsupported features:
- Certain constraint types
- E.g.
SomeType ::= INTEGER (ALL EXCEPT (0..15))
- E.g.
- Extension marker (a.k.a "ellipsis" or
...
)
-
- Can occur in constraints (e.g.
SomeType ::= INTEGER (0..8,...,100..200)
although
SomeType ::= INTEGER (0..8,...)
works)
- Can occur in constraints (e.g.
-
- or in type definitions (e.g.
RootType::= SEQUENCE { field1 INTEGER, field2 INTEGER, ..., field3 INTEGER }
but this seems to work as well).
- or in type definitions (e.g.
- Version brackets e.g.
SomeType ::= SEQUENCE { integerField1 INTEGER, integerField2 INTEGER, ..., [[ -- from version 2 integerField3 INTEGER, integerField4 INTEGER ]] }
Seems to require extension marker as well.
Attachments
Issue Links
- links to