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

Allow declaration of unresolvable "decode" / "encode" identifiers #12

Closed safris closed 4 years ago

safris commented 4 years ago

Currently, the Generator validates "decode" and "encode" identifiers in all bindings to make sure they:

  1. Resolve.
  2. Provide compatible arguments and return types.

This works for those identifiers that are resolvable to the jsonx-maven-plugin during the execution of the build, but this may not be the case in all situations. There may be situations where the identifier is defined in the same project for which the jsonx-maven-plugin is first supposed to run (which most always happens before the compile phase). This means that such classes would not be compiled yet to be resolved.

Instead of failing the invocation of the jsonx-maven-plugin, it should instead throw a warning, and continue the build.