Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use java.util.function.Supplier instead of directly initializing LOGGER #6692

Merged
merged 1 commit into from
Jan 3, 2022

Conversation

puneetbehl
Copy link
Contributor

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

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
@graemerocher graemerocher added this to the 3.2.4 milestone Jan 3, 2022
@jameskleeh jameskleeh merged commit 8866739 into 3.2.x Jan 3, 2022
@jameskleeh jameskleeh deleted the bugfixes/soft-service-loader branch January 3, 2022 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compile error with logback.groovy after updating to Micronaut 3.2.0
4 participants