amazon-ion / ion-java

Java streaming parser/serializer for Ion.
https://amazon-ion.github.io/ion-docs/
Apache License 2.0
864 stars 110 forks source link

Adds checks for annotation wrappers with length 0. #920

Closed tgregg closed 2 months ago

tgregg commented 2 months ago

Description of changes: According to the Ion spec, annotation wrappers must wrap a value. This change allows for cleaner failure (via IonException) when this is violated.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.