kaitai-io / kaitai_struct_java_runtime

Kaitai Struct: runtime for Java
MIT License
42 stars 18 forks source link

Added deprecation notes on UnexpectedDataError and ensureFixedContents. #33

Closed ams-tschoening closed 4 years ago

ams-tschoening commented 4 years ago

Those are not used anymore by current versions of the compiler and code relying especially on the UnexpectedDataError won't behave as expected at runtime. New exceptions need to be catched instead and the deprecation at least provides a warning in many IDEs.

This is related to https://github.com/kaitai-io/kaitai_struct/issues/750.

GreyCat commented 4 years ago

Thanks! This looks like a good stop-gap measure.