Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve the serviceability of JsonbComponentInstanceCreatorFactory.
Previously the handling of ReflectiveOperationException in JsonbComponentInstanceCreatorFactory.getBeanManager() would check if the exception had a cause. Then it would incorrectly log the message from the top level exception. This would result in the ReflectiveOperationException catch block logging: [12/16/20 12:35:43:049 EST] 0000001c id=00000000 org.eclipse.yasson.spi.JsonbComponentInstanceCreator 3 null [12/16/20 12:35:43:053 EST] 0000001c id=00000000 org.eclipse.yasson.spi.JsonbComponentInstanceCreator 3 CDI environment is not available. The null message from the top level ReflectiveOperationException is not helpful when debugging an issue. After patching the code to dump the original exception, an integrator of yasson will now see the full contents of the original exception. This makes is much easier to debug issues such as a CDI integration issue. Signed-off-by: Nathan Mittlestat <nmittles@us.ibm.com>
- Loading branch information