Initialize LoggerFactory#delegateFactory with JUL instance without reflection to ensure AOT compiler will include the class

This commit is contained in:
Julien Viet
2019-08-22 14:59:01 +02:00
parent 27c3a13596
commit 588a2bdbf1

View File

@@ -52,7 +52,8 @@ public class LoggerFactory {
return;
}
}
configureWith("JUL", true, loader);
// Do not use dynamic classloading here to ensure the class is visible by AOT compilers
delegateFactory = new JULLogDelegateFactory();
}
private static boolean configureWith(String name, boolean shortName, ClassLoader loader) {