jsonx-org / java

Reference implementation of the JSONx specification for the Java platform, including encoding, decoding, processing, validation, and binding.
https://www.jsonx.org/java/
MIT License
48 stars 14 forks source link

Improve type binding compatibility exception #11

Open safris opened 4 years ago

safris commented 4 years ago

Currently, the exception message reads something like:

The type binding "java.math.BigDecimal" in BigDecimal is not "encode" compatible with java.lang.String or java.lang.CharSequence

The subject type here is "BigDecimal", but this is not clear. Also, in the JSDx, it's name="bigDecimal".