Skip to content

Commit

Permalink
Merge pull request #18473 from pshipton/logger43
Browse files Browse the repository at this point in the history
(0.43) jdk11 - Don't cache instances of TemporaryLoggerFinder
  • Loading branch information
keithc-ca committed Nov 16, 2023
2 parents df46709 + 055f110 commit 837e7c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jcl/src/java.base/share/classes/java/lang/System.java
Expand Up @@ -1802,13 +1802,13 @@ public static LoggerFinder getLoggerFinder() {
(PrivilegedAction<LoggerFinder>) () -> jdk.internal.logger.LoggerFinderLoader.getLoggerFinder(),
AccessController.getContext(),
com.ibm.oti.util.RuntimePermissions.permissionLoggerFinder);
/*[IF JAVA_SPEC_VERSION >= 17]*/
/*[IF JAVA_SPEC_VERSION >= 11]*/
/*[IF JAVA_SPEC_VERSION != 21] Temporary until jdk21 picks up the OpenJDK change */
if (localFinder instanceof jdk.internal.logger.LoggerFinderLoader.TemporaryLoggerFinder) {
return localFinder;
}
/*[ENDIF] JAVA_SPEC_VERSION != 21 */
/*[ENDIF] JAVA_SPEC_VERSION >= 17 */
/*[ENDIF] JAVA_SPEC_VERSION >= 11 */
loggerFinder = localFinder;
}
return localFinder;
Expand Down

0 comments on commit 837e7c2

Please sign in to comment.