Skip to content

testRemoveAndReleaseFromCompoundPool fails when user locale is en_DE #13419

Closed

Description

@afarber

Jetty version(s)
Jetty 12.0.x

Jetty Environment
core

Java version/vendor (use: java -version)
openjdk version "21.0.8" 2025-07-15
OpenJDK Runtime Environment Homebrew (build 21.0.8)
OpenJDK 64-Bit Server VM Homebrew (build 21.0.8, mixed mode, sharing)
java.util.Locale.getDefault() is en_DE

OS type/version
macOS 15.5 (24F74)

Description
Good evening, the following test fails when I run "mvn install" on my Macbook Air M1 with Homebrew OpenJDK 21 and en_DE locale, because "50,000%" is not matching the expected "50.000%" (comma vs period):

[ERROR] org.eclipse.jetty.io.ArrayByteBufferPoolTest.testRemoveAndReleaseFromCompoundPool -- Time elapsed: 0.014 s <<< FAILURE!
java.lang.AssertionError: 

Expected: a string containing "[capacity=4096,in-use=0/0,pooled/acquires/releases=512/1024/1024(50.000%),non-pooled/evicts/removes=0/0/512]"

How to reproduce?

cd jetty-core/jetty-io
mvn clean test -Dtest=ArrayByteBufferPoolTest -Dmaven.build.cache.enabled=false

Here are the logs (please wait for my upcoming PR):

ArrayByteBufferPoolTest-fails.txt
ArrayByteBufferPoolTest-fixed.txt

Activity

  1. added
    BugFor general bugs on Jetty side
    on Aug 5, 2025
  2. added a commit that references this issue on Aug 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugFor general bugs on Jetty side

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions