From d3e7145b6d88bf35abc3fd38c54c1046c8c211c7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 5 May 2026 16:59:36 +0000 Subject: [PATCH 1/2] Initial plan From 60ec552c92d4b0409dbfab595097b080fc4b5b73 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 5 May 2026 17:06:06 +0000 Subject: [PATCH 2/2] Fix CLDR locale adapter and URLPermission warnings in test JVMs Set java.locale.providers=COMPAT,CLDR system property for all test JVMs in defaults-tests.gradle. When the security policy file loads java.net.URLPermission entries, the JVM triggers locale service loading; on CI runners where the CLDR adapter cannot be instantiated, this produces recurring warnings. Setting COMPAT first (always available) with CLDR as fallback eliminates the ServiceConfigurationError without removing any URLPermission entries or suppressing stderr. Agent-Logs-Url: https://github.com/epugh/solr/sessions/96f27172-f48c-4ebe-955c-1dad3584a343 Co-authored-by: epugh <22395+epugh@users.noreply.github.com> --- gradle/testing/defaults-tests.gradle | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gradle/testing/defaults-tests.gradle b/gradle/testing/defaults-tests.gradle index 06e22fdbc6b8..569a0a3970b3 100644 --- a/gradle/testing/defaults-tests.gradle +++ b/gradle/testing/defaults-tests.gradle @@ -135,6 +135,13 @@ allprojects { systemProperty 'java.awt.headless', 'true' systemProperty 'jdk.map.althashing.threshold', '0' + // Use COMPAT locale provider to avoid CLDR adapter instantiation errors. + // When the security policy file is loaded, java.net.URLPermission entries trigger locale + // operations. On some JDK builds, the CLDR adapter cannot be instantiated, causing + // "java.security.policy: error adding Permission, java.net.URLPermission:" warnings. + // Setting COMPAT first avoids this failure while still allowing CLDR as a fallback. + systemProperty 'java.locale.providers', 'COMPAT,CLDR' + if (!Os.isFamily(Os.FAMILY_WINDOWS)) { systemProperty 'java.security.egd', 'file:/dev/./urandom' }