Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use java.util.function.Supplier instead of directly initializing LOGGER
The problem with the current implementation is that in Grails® framework applicatio (version 5.1.1), the compilation fails because the class `SoftServiceLoader` will try to initialize LOGGER during compilation and result in `MultipleCompilationErrorsException`. Please check grails/grails-core#12291 for more information. In this commit, we are using `java.util.function.Supplier` instead of directly initializing the LOGGER which will make sure it is initialized after compilation. Fixes #6691 and so grails/grails-core#12291
- Loading branch information