Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions gradle/testing/defaults-tests.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
Expand Down