-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
3.1.0.Final
-
None
Starting with JDK 24 (or maybe 23) the new JLine-based JDK console causes a significant startup delay. This happens when initializing the console, which in turn happens when the console handler class is initialized.
We can work around this problem by moving the console initialization to a nested class which is accessed on demand. This class can preemptively set theĀ jdk.console system property to java.base before acquiring the console instance.
This will cause the console to skip the expensive JLine initialization. If the user wants to use JLine, they can acquire the console before setting up the logging handlers.